You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this is vectorized indexing...in any case I think that the following example should error since arr[:][[np.array([1, 2]), np.array([1, 2])]] is 1d but it allows storing a 2d
The nice thing about Zarr is that it provides .oindex and .vindex and set_orthogonal_selection and set_coordinate_selection to be explicit about such things :)
I agree that this should raise an error
Numpy does raise: ValueError: shape mismatch: value array of shape (2,2) could not be broadcast to indexing result of shape (2,)
Activity
dcherian commentedon Nov 22, 2024
The nice thing about Zarr is that it provides
.oindexand.vindexandset_orthogonal_selectionandset_coordinate_selectionto be explicit about such things :)I agree that this should raise an error
Numpy does raise:
ValueError: shape mismatch: value array of shape (2,2) could not be broadcast to indexing result of shape (2,)Error when attempt to set with an array of incompatible shape.
Error when attempting to set with an array of incompatible shape. (za…