-
Notifications
You must be signed in to change notification settings - Fork 91
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
Zstd: Don't persist the checksum param if false #681
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #681 +/- ##
=======================================
Coverage 99.92% 99.92%
=======================================
Files 62 62
Lines 2752 2756 +4
=======================================
+ Hits 2750 2754 +4
Misses 2 2
|
@dstansby Do you know why the macos tests are failing? I don't have that issue on my local mac. |
It's the same failure at #679, so not related to either PR as far as I can see. |
re. this PR, I'm 👎 to changing the way this parameter is serialised, because it makes the serialisation logic more complex and potentially unituitive. I think the right fix to zarr-developers/zarr-python#2647 is special casing how zarr chooses to seralise the zstd configuration when reading/writing zarr v2 data. |
I don't understand how special-casing in the client library (zarr-python) is any less complex than this small fix? I don't know what numcodecs' policy for backwards compatibility is, but conditionally adding parameters seems like a good way of dealing with that. |
Yes, complexity of the fix would be the same, but |
Is it really? |
2900 repostories and 136 packages according to GitHub: https://github.com/zarr-developers/numcodecs/network/dependents |
I suppose most of them have a transitive dependency through zarr. Anyways. I don't care too strongly about this issue. |
In that case shall we close this, and I can add a note to zarr-developers/zarr-python#2647 that a fix/change to the codec serialisation should go in |
Closing in favor of zarr-developers/zarr-python#2655 |
Changes the zstd codec to not persist the
checksum
param, if it is set toFalse
(the default). This is aimed at improving backwards compatibility.See zarr-developers/zarr-python#2647 (comment)