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
Refactoring/fixing zarr-python v3 incompatibilities in xarray datatrees (#10020)
* fixing compatibility with relative paths in open_store function within open_dtree for zarr
* fixing/refactoring test to be compatible with Zarr-python v3
* adding @requires_zarr_v3 decorator to TestZarrDatatreeIO
* replacing 0 with 1 in _create_test_datatree wich will write a chunk
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* fixing issues with groups
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* fixing issue with dict creation
* fixing issues with Mypy
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* refactoring open_store in ZarrStore class to use Zarr.core.group.Group members
* refactoring datree test for zarr ensuring compatibility with zarr-python v3
* importing zarr.core.group only inside open_store function
* documenting changes in what's-nwe.rst file
* Update xarray/backends/zarr.py
Co-authored-by: Joe Hamman <[email protected]>
* keeping grroup creation compatible with zarr v2
* fixing issue with mypy
* adding root_path equal to '/' when opening group in zarr v3 to avoid ValueError: Consolidated metadata requested with 'use_consolidated=True' but not found in 'path'.
* fixing tests accordingly
* removing print statement
* reverting changes made in unaligned test in zarr
* adding requires_zarr_v3 decorator
* changing max_depth=None in Group.members to get all nested groups
* fixing unaligned test in datrees using zarr
* Update xarray/backends/zarr.py
Co-authored-by: Joe Hamman <[email protected]>
* updating whats-new.rst entry
* remove funny-looking line and refactor to ensure reading consolidated metadata
* parametrize over whether or not we write consolidated metadata
* fix consolidated metadata
* ian hcanges
* open_datatree_specific_group consolidated true works
tom changes
* refactoring
* test: add consolidated parametrize to zarr datatree test
* fix: group finding behavior consolidated
* remove more debugging print statements
* revert changes to test fixture
* formatting
* add decorator to parametrize over zarr formats
* ensure both versions of zarr-python and both versions of zarr-python get tested
* change datatree fixture to not produce values that would be fill_values by default in zarr
* refactor test to make expected behaviour clearer
* fix wrongly expected behaviour - should not expect inherited variable to be written to zarr
* make arrays no longer scalars to dodge #10147
* fix bad merge
* parametrize almost every test over zarr_format
* parametrize encoding test over zarr_formats
* use xfail in encoding test
* updated expected behaviour of zarr on-disk in light of #10147
* fully revert change to simple_datatree test fixture by considered zarr's fill_value in assertion
* parametrize unaligned_zarr test fixture over zarr_format
* move parametrize_over_zarr_format decorator to apply to entire test class
* for now explicitly consolidate metadata in test fixture
* correct bug in writing of consolidated metadata
* delete commented-out lines
* merges from main
* Revert "merges from main"
This reverts commit 22ac9b4.
* fix encodings test for zarr_format=3
* tidy up
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* account for different default value of write_empty_chunks between zarr-python 2 vs 3
* fix expected encoding key for compressor in zarr-python v2
* account for exception type changing
* various typing fixes
* remove outdated comment
* bool type
Co-authored-by: Deepak Cherian <[email protected]>
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Joe Hamman <[email protected]>
Co-authored-by: Deepak Cherian <[email protected]>
Co-authored-by: Tom Nicholas <[email protected]>
Co-authored-by: Ian Hunt-Isaak <[email protected]>
0 commit comments