Skip to content

Commit

Permalink
Fix pylint complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Jul 13, 2023
1 parent ec6b1dc commit f0c67e3
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion python/podio/test_Frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# using root_io as that should always be present regardless of which backends are built
from podio.root_io import Reader

from test_utils import ExampleHitCollection
from .test_utils import ExampleHitCollection

# The expected collections in each frame
EXPECTED_COLL_NAMES = {
Expand Down
14 changes: 7 additions & 7 deletions python/podio/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
"""Utilities for python unittests"""

import os
import ROOT
from podio.frame import Frame

SKIP_SIO_TESTS = os.environ.get("SKIP_SIO_TESTS", "1") == "1"
ROOT.gSystem.Load("libTestDataModelDict.so") # noqa: E402
from ROOT import ExampleHitCollection, ExampleClusterCollection # noqa: E402 # pylint: disable=wrong-import-position

import ROOT
ROOT.gSystem.Load("libTestDataModelDict.so")
from ROOT import ExampleHitCollection, ExampleClusterCollection

from podio.frame import Frame
SKIP_SIO_TESTS = os.environ.get("SKIP_SIO_TESTS", "1") == "1"


def create_hit_collection():
Expand Down Expand Up @@ -47,10 +47,10 @@ def create_frame():
return frame


def write_file(WriterT, filename):
def write_file(writer_type, filename):
"""Write a file using the given Writer type and put one Frame into it under
the events category
"""
writer = WriterT(filename)
writer = writer_type(filename)
event = create_frame()
writer.write_frame(event, "events")
1 change: 1 addition & 0 deletions tests/root_io/write_frame_root.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python3
"""Script to write a Frame in ROOT format"""

from podio import test_utils
from podio.root_io import Writer
Expand Down
1 change: 1 addition & 0 deletions tests/sio_io/write_frame_sio.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env python3
"""Script to write a Frame in SIO format"""

from podio import test_utils
from podio.sio_io import Writer
Expand Down

0 comments on commit f0c67e3

Please sign in to comment.