-
Notifications
You must be signed in to change notification settings - Fork 3
Migrate to zarr-python 3 #49
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
base: main
Are you sure you want to change the base?
Conversation
@d-v-b I think this is all good for review now. The only thing broken is the docstests, because memory stores have a different name each time they're printed (because the memory address changes). I'm not too sure the best way to fix this... |
I think the best solution would be for zarr-python to stop using the memory address in the repr for memory stores :) |
is it OK if I make commits against |
Yeah go for it! |
This is currently blocked by zarr-developers/zarr-python#3038 |
a1b1960
to
41b579a
Compare
In good news using zarr main after zarr-developers/zarr-python#3038 was merged works 🎉 . Guess we just need to wait for a new zarr release now, and this should be good to go, but this is now ready for review. |
docs/index.md
Outdated
@@ -35,15 +37,9 @@ print(spec.model_dump()) | |||
'dtype': '|u1', | |||
'fill_value': 0, | |||
'order': 'C', | |||
'filters': None, | |||
'filters': [], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For whoever reviews this: I updated filters
to be an empty list instead of None
if there are no filters. This matches zarr-python
3 behaviour. I would be easy enough to revert to previous behaviour though, and set this back to None
. Would appreciate thoughts on this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if the goal is to accurately model what's in zarr-python 2 metadata documents, then filters: []
is invalid
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will definitely fix this to revert to filters=None
then 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fwiw I think the spec is wrong here, and it should allow filters: []
, but it is what it is 🤷
This switches exisiting code from
zarr-python
2 tozarr-python
3, which is part of fixing #33.