home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 467551453

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions performed_via_github_app issue
https://github.com/pydata/xarray/issues/2789#issuecomment-467551453 https://api.github.com/repos/pydata/xarray/issues/2789 467551453 MDEyOklzc3VlQ29tbWVudDQ2NzU1MTQ1Mw== 4711805 2019-02-26T18:16:12Z 2019-02-26T18:17:26Z CONTRIBUTOR

An example involving only zarr (not xarray):

```python import zarr import numpy as np

z1 = zarr.open('a.zarr', mode='w', shape=(1), chunks=(1), dtype='U6') z1[:] = 'foo'

z2 = zarr.open('a.zarr', mode='a') z2.append(np.array(['barbar'], dtype='U6'))

z3 = zarr.open('a.zarr', mode='r') print(z3[:]) ```

It works fine and prints ['foo' 'barbar'], and the encoding is "dtype": "<U6": $ cat a.zarr/.zarray { "chunks": [ 1 ], "compressor": { "blocksize": 0, "clevel": 5, "cname": "lz4", "id": "blosc", "shuffle": 1 }, "dtype": "<U6", "fill_value": "0", "filters": null, "order": "C", "shape": [ 1 ], "zarr_format": 2 }

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  414641120
Powered by Datasette · Queries took 0.725ms · About: xarray-datasette