Skip to content

Commit

Permalink
Merge pull request #793 from CoffeaTeam/use_uproot_chunking
Browse files Browse the repository at this point in the history
Use uproot chunking for uproot.dask, repin uproot
  • Loading branch information
lgray authored Apr 14, 2023
2 parents 90e4930 + 43e5cd8 commit b9673d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions coffea/nanoevents/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ def from_root(
treepath="/Events",
entry_start=None,
entry_stop=None,
chunks_per_file=1,
runtime_cache=None,
persistent_cache=None,
schemaclass=NanoAODSchema,
Expand Down Expand Up @@ -316,6 +317,7 @@ def from_root(
open_files=False,
ak_add_doc=True,
filter_branch=_remove_not_interpretable,
steps_per_file=chunks_per_file,
)
else:
opener = partial(
Expand All @@ -325,6 +327,7 @@ def from_root(
open_files=False,
ak_add_doc=True,
filter_branch=_remove_not_interpretable,
steps_per_file=chunks_per_file,
)
return cls(map_schema, opener, None, cache=None, is_dask=True)
elif permit_dask and not schemaclass.__dask_capable__:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def get_description():

INSTALL_REQUIRES = [
"awkward>=2.1.3",
"uproot>=5.0.5",
"uproot>=5.0.7",
"dask[array]>=2022.12.1",
"dask-awkward>=2023.4.1",
"dask-histogram>=2023.4.1",
Expand Down

0 comments on commit b9673d8

Please sign in to comment.