-
-
Notifications
You must be signed in to change notification settings - Fork 329
zarr.open_array duplicates path
key?
#2166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I concur that there is something bizarre here. I struggled with it: zarr-python/src/zarr/testing/strategies.py Lines 80 to 97 in ac6c6a3
Would be good to uncomment (and simplify) once someone figures this out :) |
Ah, looks like if zarr-python/src/zarr/api/asynchronous.py Lines 889 to 890 in ac6c6a3
Then when we go to create the array in zarr-python/src/zarr/api/asynchronous.py Line 900 in ac6c6a3
store_path we provide as store .
I'll see if anything breaks when removing that. |
Nice catch @TomAugspurger! |
Zarr version
v3
Numcodecs version
n/a
Python Version
n/a
Operating System
n/a
Installation
n/a
Description
I'm looking into some of the xarray tests, and noticed this strange(?) change from V2. It seems like
zarr.open_array
withpath="a"
will write the data toa/a/
, so that the metadata is at keya/a/zarr.json
. I would have expected it to be ata/zarr.json
. Is this expected?Steps to reproduce
gives
and the arrays must be opened with
zarr.open_array(store=store, path="a/a")
.Contrast that with V2, where you have
give
['a', 'b']
and you open the arrays withzarr.open_array(store=store, path="a")
.Additional output
No response
The text was updated successfully, but these errors were encountered: