Skip to content

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

Merged
normanrz merged 4 commits into
mainfrom
fix/zstd-checksum
Jan 7, 2025
Merged

Zarr v2 + Zstd: Don't persist the checksum param if false#2655
normanrz merged 4 commits into
mainfrom
fix/zstd-checksum

Conversation

@normanrz
Copy link
Copy Markdown
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
Copy Markdown
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.

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