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

Fix zarr upstream tests #9927

Merged
merged 6 commits into from
Jan 7, 2025
Merged

Fix zarr upstream tests #9927

merged 6 commits into from
Jan 7, 2025

Conversation

dcherian
Copy link
Contributor

@dcherian dcherian commented Jan 6, 2025

Apparently I was over-eager in clicking the release button on Friday :(

cc @d-v-b

@dcherian dcherian added the run-upstream Run upstream CI label Jan 6, 2025
xarray/backends/zarr.py Outdated Show resolved Hide resolved
Co-authored-by: Matthew Iannucci <[email protected]>
Comment on lines +2698 to +2700
encoding_key = "compressors" if has_zarr_v3 else "compressor"
comp = Blosc(cname="zstd", clevel=3, shuffle=2)
encoding = {encoding_key: (comp,) if has_zarr_v3 else comp}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This all feels a bit silly. "compressors" instead of "compressor" and now a tuple instead of a single object.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we had to pluralize it to make things work with zarr v3. fwiw I proposed "compression" as an arity-ambiguous version, but that wasn't popular enough

@dcherian dcherian added run-upstream Run upstream CI and removed run-upstream Run upstream CI labels Jan 6, 2025
@dcherian dcherian requested a review from jhamman January 7, 2025 00:43
@dcherian dcherian marked this pull request as ready for review January 7, 2025 00:43
Copy link
Member

@jhamman jhamman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this @dcherian!

@dcherian dcherian merged commit 1e5045a into pydata:main Jan 7, 2025
28 of 29 checks passed
@dcherian dcherian deleted the fix-zarr-upstream branch January 7, 2025 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run-upstream Run upstream CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

⚠️ Nightly upstream-dev CI failed ⚠️
3 participants