Skip to content

Commit

Permalink
Update python/podio/pythonizations/__init__.py
Browse files Browse the repository at this point in the history
Co-authored-by: Juan Miguel Carceller <22276694+jmcarcell@users.noreply.github.com>
  • Loading branch information
m-fila and jmcarcell authored Mar 25, 2024
1 parent bee4b60 commit 848e4f1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/podio/pythonizations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@

def load_pythonizations(namespace):
"""Register all available pythonizations for a given namespace"""
module_names = [name for _, name, _ in walk_packages(__path__)]
module_names = filter(lambda x: not x.startswith("test_"), module_names)
module_names = [name for _, name, _ in walk_packages(__path__) if not name.startswith("test_")]
for module_name in module_names:
import_module(__name__ + "." + module_name)
pythonizers = sorted(Pythonizer.__subclasses__(), key=lambda x: x.priority())
Expand Down

0 comments on commit 848e4f1

Please sign in to comment.