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

Make best_reco to get_best_reco

parent 249e8c49
No related branches found
No related tags found
1 merge request!21Resolve "Reduce the amount of uproot.open (to one)"
Pipeline #9169 passed
......@@ -431,8 +431,7 @@ class OfflineReader:
def usr(self):
return Usr(self._file_path)
@cached_property
def best_reco(self):
def get_best_reco(self):
"""returns the best reconstructed track fit data. The best fit is defined
as the track fit with the maximum reconstruction stages. When "nan" is
returned, it means that the reconstruction parameter of interest is not
......
......@@ -244,7 +244,7 @@ class TestOfflineReader(unittest.TestCase):
0.0014177681261476852, 0.002094094517471032, 0.003923368624980349,
0.009491461076780453
]
best = self.nu.best_reco
best = self.nu.get_best_reco()
self.assertEqual(best.size, 9)
self.assertEqual(best['JGANDALF_BETA1_RAD'][:4].tolist(),
......
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