From 68fc5897c2601ea9fd94c22b570b258376d23c8b Mon Sep 17 00:00:00 2001 From: Mateusz Jakub Fila Date: Thu, 21 Mar 2024 10:38:54 +0100 Subject: [PATCH 1/2] added loading pythonizations from podio --- python/edm4hep/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/edm4hep/__init__.py b/python/edm4hep/__init__.py index 1cf2df10d..205f4749c 100644 --- a/python/edm4hep/__init__.py +++ b/python/edm4hep/__init__.py @@ -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) From 99bbcb2d9cc84d53915546f6adf9426691fd7dec Mon Sep 17 00:00:00 2001 From: tmadlener Date: Mon, 16 Sep 2024 16:57:56 +0200 Subject: [PATCH 2/2] Remove stray statement from test creation Copy-paste error that was not caught in the large PR that introduced the tests --- test/test_EDM4hepFile.py | 1 - 1 file changed, 1 deletion(-) diff --git a/test/test_EDM4hepFile.py b/test/test_EDM4hepFile.py index fc8da2d14..51f0445ad 100644 --- a/test/test_EDM4hepFile.py +++ b/test/test_EDM4hepFile.py @@ -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):