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

Fix indexing when numpy integers are used

parent de087906
No related branches found
No related tags found
No related merge requests found
Pipeline #13701 passed with warnings
......@@ -171,7 +171,7 @@ class Branch:
def __len__(self):
if not self._index_chain:
return len(self._branch)
elif isinstance(self._index_chain[-1], int):
elif isinstance(self._index_chain[-1], (int, np.int32, np.int64)):
return 1
else:
return len(
......
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