Skip to content
Snippets Groups Projects
Verified Commit 13b82c1a authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Fix tests

parent 755f7cd2
No related branches found
No related tags found
1 merge request!70Unhide counter from mc_trks
......@@ -490,11 +490,13 @@ class TestOfflineTracks(unittest.TestCase):
self.f.events[3:5][1].tracks.fitinf[9][2],
)
class TestMisc(unittest.TestCase):
def test_mc_tracks_counter(self):
r = OfflineReader(data_path("gseagen/DAT000001.gSeaGen.1.aa.root"))
np.testing.assert_allclose([1,2,3], r.mc_tracks.counter[0])
np.testing.assert_allclose(
[0, 0, 6, 7, 0, 0, 2, 53, 0, 0, 6, 57, 0], r.mc_tracks.counter[0][:13]
)
class TestBranchIndexingMagic(unittest.TestCase):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment