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,)
dcherian
added a commit
to dcherian/zarr-python
that referenced
this issue
Nov 22, 2024
Zarr version
v3.0.0-beta.1 (main)
Numcodecs version
0.13.0
Python Version
3.12
Operating System
Mac
Installation
uv
from repoDescription
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 2dSteps to reproduce
gives
which I would not expect - I would probably expect this to error.
Additional output
No response
The text was updated successfully, but these errors were encountered: