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

Cleanup

parent 3ed83316
No related branches found
No related tags found
No related merge requests found
......@@ -363,12 +363,11 @@ class Branch:
if not self._index_chain:
return self._branch.num_entries
elif isinstance(self._index_chain[-1], (int, np.int32, np.int64)):
if len(self._index_chain) == 1:
return 1
# try:
# return len(self[:])
# except IndexError:
# return 1
# we stick to the convention and return the 1 for a single subbranch
# if len(self._index_chain) == 1:
# # single "event" is selected
# # return len(self.id)
# return 1
return 1
else:
# ignore the usual index magic and access `id` directly
......
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