Skip to content

Commit

Permalink
Reorder some imports to make pylint happy again
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Jul 13, 2023
1 parent 24ec91c commit 3415799
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions python/podio/root_io.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/usr/bin/env python3
"""Python module for reading root files containing podio Frames"""

from podio.base_reader import BaseReaderMixin

from ROOT import gSystem
gSystem.Load('libpodioRootIO') # noqa: E402
from ROOT import podio # noqa: E402 # pylint: disable=wrong-import-position

from podio.base_reader import BaseReaderMixin # pylint: disable=wrong-import-position

Writer = podio.ROOTFrameWriter


Expand Down
4 changes: 2 additions & 2 deletions python/podio/sio_io.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#!/usr/bin/env python3
"""Python module for reading sio files containing podio Frames"""

from podio.base_reader import BaseReaderMixin # pylint: disable=wrong-import-position

from ROOT import gSystem
ret = gSystem.Load('libpodioSioIO') # noqa: 402
# Return values: -1 when it doesn't exist and -2 when there is a version mismatch
if ret < 0:
raise ImportError('Error when importing libpodioSioIO')
from ROOT import podio # noqa: 402 # pylint: disable=wrong-import-position

from podio.base_reader import BaseReaderMixin # pylint: disable=wrong-import-position

Writer = podio.SIOFrameWriter


Expand Down
2 changes: 1 addition & 1 deletion python/podio_class_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@

import jinja2

from podio_schema_evolution import DataModelComparator # dealing with cyclic imports
from podio.podio_config_reader import PodioConfigReader
from podio.generator_utils import DataType, DefinitionError, DataModelJSONEncoder
from podio_schema_evolution import DataModelComparator # dealing with cyclic imports

THIS_DIR = os.path.dirname(os.path.abspath(__file__))
TEMPLATE_DIR = os.path.join(THIS_DIR, 'templates')
Expand Down

0 comments on commit 3415799

Please sign in to comment.