Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 8, 2023
1 parent de18028 commit d2d1cfc
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions tests/test_nanoevents.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def test_read_nanomc(suffix):
# parquet files were converted from even older nanoaod
nanoversion = NanoAODSchema
factory = getattr(NanoEventsFactory, f"from_{suffix}")(
{path: "Events"},
{path: "Events"},
schemaclass=nanoversion,
permit_dask=False,
)
Expand Down Expand Up @@ -136,7 +136,7 @@ def test_read_from_uri(suffix):

nanoversion = NanoAODSchema
factory = getattr(NanoEventsFactory, f"from_{suffix}")(
{path: "Events"},
{path: "Events"},
schemaclass=nanoversion,
permit_dask=False,
)
Expand All @@ -151,7 +151,7 @@ def test_read_nanodata(suffix):
# parquet files were converted from even older nanoaod
nanoversion = NanoAODSchema
factory = getattr(NanoEventsFactory, f"from_{suffix}")(
{path: "Events"},
{path: "Events"},
schemaclass=nanoversion,
permit_dask=False,
)
Expand All @@ -164,7 +164,9 @@ def test_read_nanodata(suffix):
def test_missing_eventIds_error():
path = os.path.abspath("tests/samples/missing_luminosityBlock.root") + ":Events"
with pytest.raises(RuntimeError):
factory = NanoEventsFactory.from_root(path, schemaclass=NanoAODSchema, permit_dask=False)
factory = NanoEventsFactory.from_root(
path, schemaclass=NanoAODSchema, permit_dask=False
)
factory.events()


Expand All @@ -174,7 +176,9 @@ def test_missing_eventIds_warning():
RuntimeWarning, match=r"Missing event_ids \: \[\'luminosityBlock\'\]"
):
NanoAODSchema.error_missing_event_ids = False
factory = NanoEventsFactory.from_root(path, schemaclass=NanoAODSchema, permit_dask=False)
factory = NanoEventsFactory.from_root(
path, schemaclass=NanoAODSchema, permit_dask=False
)
factory.events()


Expand Down

0 comments on commit d2d1cfc

Please sign in to comment.