Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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-python
v3 compatibility #516zarr-python
v3 compatibility #516Changes from 8 commits
39722e7
d3c7e37
25d7d14
ffe5f9d
5aef233
b9323d2
0f17119
5c8806b
80fedcd
1f69a0b
d556e52
b27e64c
41d6e8e
7ade1a6
492ddee
6e5741c
c0316ac
59bd36c
187ced2
690ed21
5019b15
d96cf46
cbcb720
b88655f
73eaf33
3757199
9444ff8
d8848ce
1fa294e
543178d
96b56cd
0808b05
aef006e
d9bf0dd
884fc68
1145f45
94ec479
a9693d1
7e9112a
a7af691
f7b87de
95f340f
fa364a7
53922a2
0486ac1
c522a52
9b96d8c
17478bd
2d5033c
9066360
4750f8e
73385f5
1a79a5c
f51604f
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
This is the hacky bit and could use some explanations. Even when requesting "v2", zarr makes Buffer objects, and the keys are also wrong?
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.
Yeah so two issues here:
/depth/.zarray
when then need to bedepth/.zarray
MemoryStore
in v3 stores its data. So we need to convert the buffers to bytes to be serializedThere 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.
OK - would appreciate comments on the code saying 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.
So here, you could reintroduce the compressor
but obviously it depends on whether there are indeed any filters at all.
It would still need back compat, since filters-only datasts definitely exist.
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.
yeah the big issue is that v3 cares about what type of operation it is, and v2w doesnt so moving them around doesnt necessarily fix that bug
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.
So there needs to be a change upstream?
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.
Yes this: zarr-developers/zarr-python#2325
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.
This is the same as what
_chunk_key
did? Maybe make it a function with a comment saying it's a copy/reimplementation.By the way, is
h5obj.name
not actually a string, so you could have doneh5obj.name.removeprefix()
?