Skip to content

align_chunks not working for datasets #10516

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

Open
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

josephnowak
Copy link
Contributor

@josephnowak josephnowak commented Jul 8, 2025

I forgot to pass the align_chunks to the to_zarr method on the datasets, which makes the feature useless for this kind of data structure. I added a specific test to cover this issue.

Now, the align_chunks works on the cases where the data is smaller than a single Zarr chunk (also, one test was added to cover this scenario).

I modified (again) the error message shown with the safe_chunks, now it includes information about the two chunks that overlap with a single Zarr chunk. From what I saw on the error 10501, the original message was not helping the users to understand what was happening.

@josephnowak josephnowak marked this pull request as draft July 9, 2025 14:15
@josephnowak
Copy link
Contributor Author

Looks like those tests failing are not related to this PR

@josephnowak
Copy link
Contributor Author

josephnowak commented Jul 29, 2025

Hi @max-sixty, sorry for bothering you. I'm not sure if you have some free time to review this PR.

I'm not sure how the reviewer is assigned on Xarray in this case, as no other person was involved in the issue, and probably no one else was notified to review this.

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

Successfully merging this pull request may close these issues.

to_zarr() via dask with silent data loss on append
2 participants