We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1024db9 commit 4b05000Copy full SHA for 4b05000
zarr/indexing.py
@@ -69,6 +69,11 @@ def is_pure_fancy_indexing(selection, ndim):
69
True if the selection is a pure fancy indexing expression (ie not mixed
70
with boolean or slices).
71
"""
72
+ if ndim == 1:
73
+ if is_integer_list(selection) or is_integer_array(selection):
74
+ return True
75
+ # if not, we go through the normal path below, because a 1-tuple
76
+ # of integers is also allowed.
77
no_slicing = (
78
isinstance(selection, tuple)
79
and len(selection) == ndim
0 commit comments