-
-
Notifications
You must be signed in to change notification settings - Fork 282
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
fix: selection with zarr arrays #2137
fix: selection with zarr arrays #2137
Conversation
src/zarr/core/indexing.py
Outdated
Selector = ( | ||
BasicSelector | ArrayOfIntOrBool | Array | ||
) # help! we want zarr.Array[np.intp] | zarr.Array[np.bool_] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see a technical reason why it isn't possible to make Array
a generic type over data types.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
happy to do this, can you point me in the right direction?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dstansby - I feel that you are going to be best positioned to do flesh out the generic Array type. Do you have time to take that on?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably not (at least in the next month) :(
…nto fix/indexing-with-zarr-arrays
…nto fix/indexing-with-zarr-arrays
Co-authored-by: Davis Bennett <davis.v.bennett@gmail.com>
This is a partial solution to #2133. It works but does so in a potential suboptimal way -- materializing the entire indexer before indexing. A deeper solution would include streaming indexer chunks from the selector to oindex/vindex but I think that can wait until later.
closes #2133
TODO: