Skip to content

Commit

Permalink
use uproot._util.unset as default value to chunks_per_file to ensure …
Browse files Browse the repository at this point in the history
…correct behavior
  • Loading branch information
lgray authored Sep 6, 2023
1 parent 881e4e2 commit 5527a02
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions src/coffea/nanoevents/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def from_root(
treepath="/Events",
entry_start=None,
entry_stop=None,
chunks_per_file=1,
chunks_per_file=uproot._util.unset,
runtime_cache=None,
persistent_cache=None,
schemaclass=NanoAODSchema,
Expand Down Expand Up @@ -327,17 +327,7 @@ def from_root(
filter_branch=_remove_not_interpretable,
steps_per_file=chunks_per_file,
**uproot_options,
)
elif chunks_per_file is None:
opener = partial(
uproot.dask,
file,
full_paths=True,
open_files=False,
ak_add_doc=True,
filter_branch=_remove_not_interpretable,
**uproot_options,
)
)
else:
opener = partial(
uproot.dask,
Expand Down

0 comments on commit 5527a02

Please sign in to comment.