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 ada2999 commit 4ed77a5Copy full SHA for 4ed77a5
src/zarr/core/indexing.py
@@ -78,7 +78,7 @@ def _zarr_array_to_int_or_bool_array(arr: Array) -> npt.NDArray[np.intp] | npt.N
78
if arr.dtype.kind in ("i", "b"):
79
return np.asarray(arr)
80
else:
81
- raise IndexError("arrays used as indices must be of integer (or boolean) type")
+ raise IndexError(f"Invalid array dtype: {arr.dtype}. Arrays used as indices must be of integer or boolean type")
82
83
84
@runtime_checkable
0 commit comments