From c8d4adc06f96a821f305ca7512f988366c6e9463 Mon Sep 17 00:00:00 2001 From: Tamas Gal <tgal@km3net.de> Date: Wed, 30 Sep 2020 15:08:46 +0200 Subject: [PATCH] Fixes is_single --- km3io/rootio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/km3io/rootio.py b/km3io/rootio.py index a5e4856..75e6436 100644 --- a/km3io/rootio.py +++ b/km3io/rootio.py @@ -174,7 +174,7 @@ class Branch: def __len__(self): if not self._index_chain: return len(self._branch) - elif isinstance(self._index_chain[-1], (int, np.int32, np.int64)): + elif isinstance(self._index_chain[0], (int, np.int32, np.int64)): if len(self._index_chain) == 1: try: return len(self[:]) -- GitLab