-
-
Notifications
You must be signed in to change notification settings - Fork 284
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
Add easy way to iterate through every chunk of an array #2454
Comments
something like this? zarr-python/src/zarr/core/array.py Line 893 in 4c3081c
|
Hard to tell just looking at the code, but from the docstring I think that sounds about right 😄 |
Can we remake |
I think that would be quite a big braking API change, so probably worth creating a freshly named property or method? |
i'm not a big fan of |
I am finding myself wanting to apply an operation (e.g., thresholding) on every chunk in an array. It would therefore be nice if there was an easy way to iterate through each chunk of the array.
Something like:
This is sort of similar to block indexing, but iterating over
Array.blocks
only iterates over the first axis of blocks, and gives you back all the chunks along the other axes.The text was updated successfully, but these errors were encountered: