From e8f1db77943e7f21830d0fef8a9596f7f52f20a6 Mon Sep 17 00:00:00 2001
From: Tamas Gal <tgal@km3net.de>
Date: Wed, 4 Mar 2020 01:46:10 +0100
Subject: [PATCH] Make best_reco to get_best_reco

---
 km3io/offline.py      | 3 +--
 tests/test_offline.py | 2 +-
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/km3io/offline.py b/km3io/offline.py
index 29c34d3..c331df9 100644
--- a/km3io/offline.py
+++ b/km3io/offline.py
@@ -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
diff --git a/tests/test_offline.py b/tests/test_offline.py
index dab4fdd..711969c 100644
--- a/tests/test_offline.py
+++ b/tests/test_offline.py
@@ -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(),
-- 
GitLab