-
-
Notifications
You must be signed in to change notification settings - Fork 318
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug with setitem with oindex and sharding #2834
Comments
I think the problem is that the information that the selection is an In indexer = list(
get_indexer(
selection, shape=shard_shape, chunk_grid=RegularChunkGrid(chunk_shape=chunk_shape)
)
) There, |
Looks like there are some problematic ambiguities that will be a plague
Example 1:Selection: (np.array([0, 1]), np.array([2, 3])) for a 2D array. Ambiguity:
Example 2:Selection: (np.array([0]), 1) for a 2D array. Ambiguity:
Example 3:Selection: (np.array([0]), np.array([[1]])) where the second index isn’t 1D. Ambiguity:
|
Zarr version
v3.0.2
Numcodecs version
?
Python Version
3.12
Operating System
any
Installation
any
Description
Discovered in #2825
Steps to reproduce
raises the error:
It succeeds with
shards=None
.Additional output
No response
The text was updated successfully, but these errors were encountered: