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

Add more tests

parent 41e151ac
No related branches found
No related tags found
1 merge request!27Refactor offline I/O
......@@ -210,6 +210,16 @@ class TestOfflineTracks(unittest.TestCase):
# ]:
# self.assertListEqual(list(tracks.E[:, 0][_slice]),
# list(tracks[_slice].E[:, 0]))
#
class TestBranchIndexingMagic(unittest.TestCase):
def setUp(self):
self.events = OFFLINE_FILE.events
def test_foo(self):
assert 318 == self.events[2:4].n_hits[0]
assert np.allclose(self.events[3].tracks.dir_z[10], self.events.tracks.dir_z[3, 10])
assert np.allclose(self.events[3:6].tracks.pos_y[:, 0], self.events.tracks.pos_y[3:6, 0])
class TestUsr(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