-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Zarr : Allow setting
write_empty_chunks
(#8016)
* Added parameter write_empty_chunks to Dataset.to_zarr * Missed a couple things... - Incorrectly set default values - Need to set write_empty_chunks for new variables in group * Update xarray/tests/test_backends.py Co-authored-by: Deepak Cherian <[email protected]> * Alternate chunking method if dask not present in test run * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Improvements - Default value of None which will fall back to encoding specified behavior or Zarr defaults - If param (!= None) and encoding setting disagree, a ValueError is raised - Test case checks for compatible zarr version - Documented minimum required Zarr version * Bumped minimum zarr dependency version 2.10 -> 2.12 * Simplified test case Zarr minimum dependency bump should make the version check no longer necessary * Fixed table in docs * Update xarray/backends/zarr.py Co-authored-by: Illviljan <[email protected]> * Update xarray/backends/zarr.py Co-authored-by: Illviljan <[email protected]> * Update xarray/tests/test_backends.py Co-authored-by: Illviljan <[email protected]> * Update xarray/tests/test_backends.py Co-authored-by: Illviljan <[email protected]> * Update xarray/backends/zarr.py Co-authored-by: Illviljan <[email protected]> * Fix typing * Update xarray/core/dataset.py Co-authored-by: Joe Hamman <[email protected]> * Avoid setting of protected attribute in zarr Array object --------- Co-authored-by: rileykk <[email protected]> Co-authored-by: Deepak Cherian <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Illviljan <[email protected]> Co-authored-by: Joe Hamman <[email protected]> Co-authored-by: Joe Hamman <[email protected]>
- Loading branch information
1 parent
fb6bbbe
commit 0343761
Showing
5 changed files
with
138 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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