-
-
Notifications
You must be signed in to change notification settings - Fork 310
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
Zarr v3: support root path #1085
Conversation
v3 spec states path = '/' for arrays gives /meta/root.array.json path = '/' for groups gives /meta/root.array.json In this implementation path = None or path = '' will also result in a root array. Creation routines default to path=None, so this makes it so that the path argument does not have to be manually specified.
update additional tests
update test_nbytes_stored to handle both v3 and v2 cases properly
previous behavior corresponded to at_root=True by default
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1085 +/- ##
=======================================
Coverage 99.94% 99.94%
=======================================
Files 34 34
Lines 13846 13853 +7
=======================================
+ Hits 13839 13846 +7
Misses 7 7
|
@grlee77, thanks for this! Reading over it, it does seem to address the issues that Stephan raised. Do you have anything else for this PR from your side or just need testing and then rolling into a 2.12.x release?? |
I think test coverage is pretty good now. It should be ready for review. |
Rolling into a 2.13 pre-release for better testing together with xarray. cc: @shoyer |
path=None support was previously added in zarr-developersgh-1085. This change should have been made at that time.
path=None support was previously added in gh-1085. This change should have been made at that time.
closes #1039
v3 spec states path = '/' for arrays gives an array at /meta/root.array.json
path = '/' for groups gives a group at /meta/root.array.json
In this implementation
path=None
will also result in a root array. Creation routines default topath=None
, so this makes it so that the path argument does not have to be manually specified.TODO: