-
-
Notifications
You must be signed in to change notification settings - Fork 286
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
Error reading sharded array past the first inner chunk #2018
Comments
This error persists on the |
thanks for the bug report @darsnack, I'm planning on making some improvements to the sharding test suite this week so I will hopefully get some time to replicate (and maybe fix) this bug |
After some debugging, I think I've narrowed down the cause of the issue. Here's a summary:
From this, we get the behavior described in the bug report.
Currently, I could try modifying |
Zarr version
v3.0.0a0
Numcodecs version
v0.12.1
Python Version
3.12
Operating System
Linux
Installation
Using Poetry
Description
I have an array stored using Zarr v3 in a sharded format where the inner chunk size is 1. Reading past the first chunk results in an error show below in the MWE. If the chunk size is > 1 (e.g.
k
), then the no errors occur for indices 0 throughk - 1
, but the same error occurs when accessing indexk
onwards.Steps to reproduce
First, create a sharded store:
Now, attempt to open the store and read a single chunk at a time:
If we try to access
arr[2]
then the error will try to reshape an array of size 3000. It seems that doingarr[i]
reads chunks from 0 throughi
(inclusive) instead of a single chunk.Additional output
No response
The text was updated successfully, but these errors were encountered: