You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current behavior on the v3 branch diverges from v2 when creating a new array w/ a path. In v2, zarr creates a root group node when creating a new array. But in v3, we only create the array node. This means that you can't do the following:
In [1]: importzarrIn [2]: foo=zarr.create(shape=(3, 1), path='foo', store='/Users/jhamman/workdir/test-store', mode='w')
In [3]: root=zarr.open_group(store='/Users/jhamman/workdir/test-store', mode='r')
In [4]: root['foo']
Steps to reproduce
examining the store contents after creating of the array explains the difference
in v2 👇
In [1]: importzarrIn [2]: x=zarr.create(shape=(3, 0), path='foo')
In [3]: list(x.store.keys())
Out[3]: ['.zgroup', 'foo/.zarray']
in v3 👇
In [1]: importzarrIn [2]: x=zarr.create(shape=(3, 0), path='foo')
In [3]: [_asyncfor_inx.store.list()]
Out[3]: ['foo/zarr.json']
Zarr version
3.0.0.alpha4
Numcodecs version
N/A
Python Version
3.11
Operating System
Local install
Installation
pip install -e .
Description
The current behavior on the v3 branch diverges from v2 when creating a new array w/ a path. In v2, zarr creates a root group node when creating a new array. But in v3, we only create the array node. This means that you can't do the following:
Steps to reproduce
examining the store contents after creating of the array explains the difference
in v2 👇
in v3 👇
Additional output
xref: #2186, dask/dask#11388
The text was updated successfully, but these errors were encountered: