Zarr v3 sharding support#557
Draft
r-xue wants to merge 4 commits intocasangi:355-zarr-python-v3-and-zarr-v3from
Draft
Zarr v3 sharding support#557r-xue wants to merge 4 commits intocasangi:355-zarr-python-v3-and-zarr-v3from
r-xue wants to merge 4 commits intocasangi:355-zarr-python-v3-and-zarr-v3from
Conversation
…version functions Changes: - `encoding.py`: rewrite add_encoding() with full sharding support - new `shards` parameter accepts dict (per-dim absolute shard sizes) or int (uniform factor: shard = factor × chunk for every dim) - ShardingCodec wraps BytesCodec + compressor as inner-chunk codecs - `convert_msv2_to_processing_set.py`: expose sharding at public API - add main_shards / pointing_shards (dict | int | None) parameters - forward both params to convert_and_write_partition in serial and parallel (dask.delayed) call sites - `conversion.py`: thread sharding down to the write layer - add main_shards / pointing_shards to convert_and_write_partition - pass consolidated=False to ms_xdt.to_zarr() to suppress warning - update compressor docstring type annotation
- Upgrade xarray to >=2025.09.0 and refactor to use xarray's native "shards"/"chunks" encoding keys instead of constructing ShardingCodec directly. - Delegate Dask rechunking to to_zarr(align_chunks=True) instead of manual alignment. - Simplify add_encoding() logic and remove zarr.codecs import.
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
…n image writing functions
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.