-
-
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.
* Initial version of appending to zarr store * Added docs * Resolve PEP8 incompliances * Added write and append test for mode 'a' * Merged repaired master * Resolved pep8 issue * Put target store encoding in appended variable * Rewrite test with appending along time dimension * Add chunk_size parameter for rechunking appended coordinate * Add chunk_dim test * Add type check and tests for it. In append mode storing any datatype apart from number subtypes and fixed size strings raises and error. * Add documentation * Add test for compute=False and commented it out * Remove python 3.7 string formatting * Fix PEP8 incompliance * Add missing whitespaces * allowed for compute=False when appending to a zarr store * Fixed empty array data error When using create_append_test_data we used np.arange(...), which was incidently also the default value of the zarr array when fill_value is set to None. So appending to the data with compute=False and then expecting an error when asserting the source and target to be the same failed the tests. Using random data passes the tests * flake8 fixes * removed chunk_dim argument to to_zarr function * implemented requested changes * Update xarray/backends/api.py Co-Authored-By: Stephan Hoyer <shoyer@gmail.com> * added contributors and example of using append to zarr * fixed docs fail * fixed docs * removed unnecessary condition * attempt at clean string encoding and variable length strings * implemented suggestions * * append_dim does not need to be specified if creating a new array with Dataset.to_zarr(store, mode='a') * cleand up to_zarr append mode tests * raise ValueError when append_dim is not a valid dimension * flake8 fix * removed unused comment * * raise error when appending with encoding provided for existing variable * add test for encoding consistency when appending * implemented: #2706 (comment) * refactored tests
- Loading branch information
1 parent
d30635c
commit 18f35da
Showing
8 changed files
with
394 additions
and
56 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
Oops, something went wrong.