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

Explicitly convert np.int*-indices to int

parent a0793b24
No related branches found
No related tags found
No related merge requests found
Pipeline #13975 passed with warnings
......@@ -158,6 +158,9 @@ class Branch:
if isinstance(item, str):
return self.__getkey__(item)
if isinstance(item, (np.int32, np.int64)):
item = int(item)
# if item.__class__.__name__ == "ChunkedArray":
# item = np.array(item)
......
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