Skip to content

Commit

Permalink
Merge pull request #911 from CoffeaTeam/test-missing-evtid-warning
Browse files Browse the repository at this point in the history
fix: test that demoted version of missing event id actually tries to extract from file
  • Loading branch information
lgray authored Oct 19, 2023
2 parents 13144f3 + 999b70c commit 5f7651a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ classifiers = [
]
dependencies = [
"awkward>=2.4.6",
"uproot>=5.1.1",
"uproot>=5.1.2",
"dask[array]>=2023.4.0",
"dask-awkward>=2023.10.0",
"dask-histogram>=2023.10.0",
Expand Down
9 changes: 9 additions & 0 deletions tests/test_nanoevents.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,3 +170,12 @@ def test_missing_eventIds_warning():
NanoAODSchema.error_missing_event_ids = False
factory = NanoEventsFactory.from_root(path, schemaclass=NanoAODSchema)
factory.events()


def test_missing_eventIds_warning_dask():
path = os.path.abspath("tests/samples/missing_luminosityBlock.root") + ":Events"
NanoAODSchema.error_missing_event_ids = False
events = NanoEventsFactory.from_root(
path, schemaclass=NanoAODSchema, permit_dask=True
).events()
events.Muon.pt.compute(scheduler="processes")

0 comments on commit 5f7651a

Please sign in to comment.