issues: 386515973
This data as json
id | node_id | number | title | user | state | locked | assignee | milestone | comments | created_at | updated_at | closed_at | author_association | active_lock_reason | draft | pull_request | body | reactions | performed_via_github_app | state_reason | repo | type |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
386515973 | MDU6SXNzdWUzODY1MTU5NzM= | 2586 | Zarr loading from ZipStore gives error on default arguments | 5191106 | closed | 0 | 5 | 2018-12-02T01:28:24Z | 2019-01-17T23:49:07Z | 2019-01-17T02:20:28Z | NONE | (This is not too much of a problem, but it would probably be a reasonably easy fix) ```python import xarray as xr import zarr ds = xr.Dataset({'foo': [2,3,4], 'bar': ('x', [1, 2]), 'baz': 3.14}) ds.to_zarr(zarr.ZipStore("test.zarr"))
print(xr.open_zarr(zarr.ZipStore("test.zarr")))
~/.local/lib/python3.7/site-packages/xarray/backends/zarr.py in open_zarr(store, group, synchronizer, auto_chunk, decode_cf, mask_and_scale, decode_times, concat_characters, decode_coords, drop_variables) 424 zarr_store = ZarrStore.open_group(store, mode=mode, 425 synchronizer=synchronizer, --> 426 group=group) 427 ds = maybe_decode_store(zarr_store) 428 ~/.local/lib/python3.7/site-packages/xarray/backends/zarr.py in open_group(cls, store, mode, synchronizer, group) 236 "#installation" % min_zarr) 237 zarr_group = zarr.open_group(store=store, mode=mode, --> 238 synchronizer=synchronizer, path=group) 239 return cls(zarr_group) 240 ~/.local/lib/python3.7/site-packages/zarr/hierarchy.py in open_group(store, mode, cache_attrs, synchronizer, path) 1111 err_contains_array(path) 1112 elif not contains_group(store, path=path): -> 1113 err_group_not_found(path) 1114 1115 elif mode == 'w': ~/.local/lib/python3.7/site-packages/zarr/errors.py in err_group_not_found(path) 27 28 def err_group_not_found(path): ---> 29 raise ValueError('group not found at path %r' % path) 30 31 ValueError: group not found at path ''
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/2586/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |