home / github / commits

Menu
  • GraphQL API
  • Search all tables

commits: 18f35da6ac14b078772357b6bc11d3af5296afba

This data as json

sha message author_date committer_date raw_author raw_committer repo author committer
18f35da6ac14b078772357b6bc11d3af5296afba Appending to zarr store (#2706) * 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: https://github.com/pydata/xarray/pull/2706#discussion_r298267776 * refactored tests 2019-06-29T23:43:14Z 2019-06-29T23:43:14Z 1fb9e7ae004febb59559d36136b2695db0a5fcd2 f10b21bed2846b879806f87039b77245b18e7671 13221727 9658781 1217238
Powered by Datasette · Queries took 0.649ms · About: xarray-datasette