From 7db78adc8aa660aa681745edcfd6a9cd7b038420 Mon Sep 17 00:00:00 2001 From: zineb aly <aly.zineb.az@gmail.com> Date: Mon, 20 Jan 2020 13:07:29 +0100 Subject: [PATCH] test tracks reco --- tests/test_offline.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/test_offline.py b/tests/test_offline.py index cdd476e..e283518 100644 --- a/tests/test_offline.py +++ b/tests/test_offline.py @@ -325,6 +325,14 @@ class TestOfflineTracks(unittest.TestCase): list(tracks[_slice].E[:,0]) ) + def test_reco_data(self): + reco = self.tracks.reco + self.assertEqual(10, reco.size) + E = reco['JENERGY_ENERGY'] + self.assertListEqual([99.10458562488608, 99.10458562488608, 99.10458562488608], + E[:3].tolist()) + + class TestOfflineTrack(unittest.TestCase): def setUp(self): -- GitLab