Skip to content
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

sharding with empty inner chunk and index location start #16

Merged
merged 2 commits into from
Sep 28, 2024

Conversation

brokkoli71
Copy link
Contributor

@brokkoli71 brokkoli71 commented Aug 20, 2024

In sharding, empty inner chunks get marked by setting nbytes and offset to -1 in the index array. When using index_location="start" the size of the index array will be added to the offset.

This PR will disable incrementing the offset for empty inner chunks (thus, it still contains -1)

(I have tested that in zarr-python aswell and it does not seem to be a problem there)

@brokkoli71 brokkoli71 requested a review from normanrz August 20, 2024 14:38
@normanrz
Copy link
Member

Thanks. Can you check if the issue is also present in zarr-python?

@brokkoli71
Copy link
Contributor Author

brokkoli71 commented Aug 21, 2024

Thanks. Can you check if the issue is also present in zarr-python?

its no problem in zarr-python 👍🏼 @normanrz

@brokkoli71 brokkoli71 merged commit 966bab4 into async Sep 28, 2024
8 checks passed
@brokkoli71
Copy link
Contributor Author

Actually it was also a problem in zarr-python.
This will be fixed in zarr-developers/zarr-python#2336.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants