You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR adds the capability back of using either lz4 or zstd compression at various compression levels. It is exposed through a compressor argument in write and write_element that takes as value a dict with key being the compression name and the value being the compression level. By default if compression is specified bytes will be reordered for more efficient compression SHUFFLE in blosc.
❌ Patch coverage is 76.00000% with 12 lines in your changes missing coverage. Please review.
✅ Project coverage is 92.44%. Comparing base (06e6981) to head (eea7a7f). ⚠️ Report is 20 commits behind head on main.
Thanks @melonora, I picked this up and merged the conflicts arising after the Zarr v3 support.
The tests currently fail mainly due to the disconnect between the new format options and dask, but it should be straightforward to make the PR green again after https://github.com/ome/ome-zarr-py/pull/510/changes is merged.
Use "compressors" (plural) with native zarr v3 codec objects (ZstdCodec,
BloscCodec) in storage_options, which ome-zarr-py >= 0.16.0 + dask >= 2026.3.0
correctly forwards to zarr_array_kwargs. Bump minimum deps accordingly and fix
test assertions for lz4 (.clevel) vs zstd (.level) and the s0 array path.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes#37
This PR adds the capability back of using either
lz4orzstdcompression at various compression levels. It is exposed through acompressorargument inwriteandwrite_elementthat takes as value adictwith key being the compression name and the value being the compression level. By default if compression is specified bytes will be reordered for more efficient compressionSHUFFLEinblosc.