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

Zarr v2 + Zstd: Don't persist the checksum param if false #2655

Merged
merged 4 commits into from
Jan 7, 2025

Conversation

normanrz
Copy link
Member

@normanrz normanrz commented Jan 6, 2025

Changes the zstd codec to not persist the checksum param, if it is set to False (the default). This is aimed at improving backwards compatibility.

See #2647 (comment)
Fixes #2647

Comment on lines +121 to +123
# Hotfix for https://github.com/zarr-developers/zarr-python/issues/2647
if codec_config["id"] == "zstd" and not codec_config.get("checksum", False):
codec_config.pop("checksum", None)
Copy link
Member

Choose a reason for hiding this comment

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

feels a bit wrong but I don't think this hurts anything.

@normanrz normanrz enabled auto-merge (squash) January 7, 2025 07:17
@normanrz normanrz merged commit f9c2024 into main Jan 7, 2025
33 checks passed
@jni jni deleted the fix/zstd-checksum branch January 7, 2025 08:45
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.

Regression with 3.0.0rc1: reading zarr with tensorstore
2 participants