issues: 1512290017
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1512290017 | I_kwDOAMm_X85aI7bh | 7403 | Zarr error when trying to overwrite part of existing store | 35968931 | open | 0 | 3 | 2022-12-28T00:40:16Z | 2023-01-11T21:26:10Z | MEMBER | What happened?
What did you expect to happen?With mode I expected that because that's what the docstring of
The default mode is "w", so I was expecting it to overwrite. Minimal Complete Verifiable Example```Python import xarray as xr import numpy as np np.random.seed(0) ds = xr.Dataset() ds["data"] = (['x', 'y'], np.random.random((100,100))) ds.to_zarr("test.zarr") print(ds["data"].mean().compute()) returns array(0.49645889) as expectedds = xr.open_dataset("test.zarr", engine='zarr', chunks={}) ds["data"].mean().compute() print(ds["data"].mean().compute()) still returns array(0.49645889) as expectedds.to_zarr("test.zarr", mode="a") ```
MVCE confirmation
Relevant log outputNo response Anything else we need to know?I would like to know what the intended result is supposed to be here, so that I can make sure datatree behaves the same way, see https://github.com/xarray-contrib/datatree/issues/168. EnvironmentMain branch of xarray, zarr v2.13.3 |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/7403/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
13221727 | issue |