Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add loading pythonizations from podio #290

Merged
merged 3 commits into from
Sep 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions python/edm4hep/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
raise RuntimeError('Failed to load Constants.h')
from ROOT import edm4hep

from podio.pythonizations import load_pythonizations
load_pythonizations('edm4hep')

# Make TAB completion work for utils
setattr(edm4hep, 'utils', edm4hep.utils)

Expand Down
1 change: 0 additions & 1 deletion test/test_EDM4hepFile.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,6 @@ def test_ClusterCollection(event):
calo_hit = event.get("CalorimeterHitCollection")[0]
assert len(cluster.getHits()) == 1
assert cluster.getHits()[0] == calo_hit
cluster.addToHits(calo_hit)


def test_TrackerHit3DCollection(event):
Expand Down
Loading