forked from pydata/xarray
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cache pre-existing Zarr arrays in Zarr backend (pydata#9861)
* cache array keys on ZarrStore instances * refactor get_array_keys * add test for get_array_keys * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * lint * add type annotation for _cache * make type hint accurate * make type hint pass mypy * make type hint pass mypy, correctly * Update xarray/backends/zarr.py Co-authored-by: Deepak Cherian <[email protected]> * use roundtrip method instead of explicit alternative * cache members instead of just array keys * adjust test to members caching * refactor members cache * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * explictly revert changes to test_write_store * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * indent correctly * update instrumented tests, remove cache update functionality, and set cache default to False in test fixtures * update instrumented tests, remove cache update functionality, and set cache default to False in test fixtures * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * lint * update tests * make check_requests more permissive * update instrumented tests for zarr==2.18 * Update xarray/backends/zarr.py Co-authored-by: Deepak Cherian <[email protected]> * Update xarray/backends/zarr.py Co-authored-by: Deepak Cherian <[email protected]> * Update xarray/backends/zarr.py Co-authored-by: Deepak Cherian <[email protected]> * Update xarray/backends/zarr.py Co-authored-by: Deepak Cherian <[email protected]> * Update xarray/backends/zarr.py Co-authored-by: Deepak Cherian <[email protected]> * doc: add whats new content * fixup * update whats new * fixup * remove vestigial cache_array_keys * make cache_members default to True * tweak * Remove from public API --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Deepak Cherian <[email protected]> Co-authored-by: Deepak Cherian <[email protected]>
- Loading branch information
1 parent
9fe816e
commit 60a4a49
Showing
3 changed files
with
162 additions
and
62 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
Oops, something went wrong.