From 45df4e0c23393d0bf5eaff545ecdff23479e6596 Mon Sep 17 00:00:00 2001 From: Tamas Gal <tgal@km3net.de> Date: Wed, 4 Mar 2020 13:54:33 +0100 Subject: [PATCH] Remove reconstruction wrapper --- km3io/offline.py | 12 ------------ tests/test_offline.py | 25 ------------------------- 2 files changed, 37 deletions(-) diff --git a/km3io/offline.py b/km3io/offline.py index 3dfb429..e9c4ead 100644 --- a/km3io/offline.py +++ b/km3io/offline.py @@ -210,18 +210,6 @@ class OfflineKeys: """ return km3io.definitions.trigger.data - @cached_property - def reconstruction(self): - """reconstruction parameters and their index from km3net-Dataformat. - - Returns - ------- - dict - dictionary of reconstruction parameters and their index in an - Offline file. - """ - return km3io.definitions.reconstruction.data - class Reader: """Reader for one offline ROOT file""" diff --git a/tests/test_offline.py b/tests/test_offline.py index 9af1018..0fa6eff 100644 --- a/tests/test_offline.py +++ b/tests/test_offline.py @@ -41,31 +41,6 @@ class TestOfflineKeys(unittest.TestCase): # there are 18 fit keys self.assertEqual(len(self.keys.fit_keys), 18) - def test_trigger(self): - # there are 4 trigger keys in v1.1.2 of km3net-Dataformat - trigger = self.keys.trigger - keys = [ - 'JTRIGGER3DSHOWER', 'JTRIGGERMXSHOWER', 'JTRIGGER3DMUON', - 'JTRIGGERNB' - ] - values = [1, 2, 4, 5] - - for k, v in zip(keys, values): - self.assertEqual(v, trigger[k]) - - def test_reconstruction(self): - # there are 34 parameters in v1.1.2 of km3net-Dataformat - reco = self.keys.reconstruction - keys = [ - 'JPP_RECONSTRUCTION_TYPE', 'JMUONFIT', 'JMUONBEGIN', 'JMUONPREFIT', - 'JMUONSIMPLEX', 'JMUONGANDALF', 'JMUONENERGY', 'JMUONSTART' - ] - values = [4000, 0, 0, 1, 2, 3, 4, 5] - - self.assertEqual(34, len([*reco.keys()])) - for k, v in zip(keys, values): - self.assertEqual(v, reco[k]) - class TestReader(unittest.TestCase): def setUp(self): -- GitLab