-
Notifications
You must be signed in to change notification settings - Fork 54
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 #383
Zarr v3 support #383
Conversation
If it is not an explicit goal to move the ome-zarr-py interface to async, I would not do it. You can use the |
ome_zarr/io.py
Outdated
""" | ||
Load the Zarr metadata files for the given location. | ||
""" | ||
self.zarray: JSONDict = self.get_json(".zarray") | ||
self.zgroup: JSONDict = self.get_json(".zgroup") | ||
self.zarray: JSONDict = await self.get_json(".zarray") |
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.
Instead of loading the json files directly, can you work with the metadata objects from zarr-python?
@normanrz Thanks, I'm looking into using Same issue for |
There is a bunch of ongoing work at the moment. I would recommend to check back in once the alpha release is done in the next few days. If the issue persists, I would recommend to open an issue. |
@normanrz Great, will do, thx |
16608b9
to
421a417
Compare
8cf2a7e
to
8a9d640
Compare
bec0ade
to
988dde7
Compare
https://pypi.org/project/zarr/3.0.0a0/ went out about 3 hours ago! 🎉 |
7873267
to
d5b37ac
Compare
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
@will-moore: let me know what you think about a5d8475 as a stop-gap. |
Great - yes that's helpful thanks. |
@will-moore @joshmoore what's the status of zarr/zarr-python v3 support in napari-ome-zarr? Or is it just going to go through dask? |
Sorry about closing with no explanation... |
great, thanks for the update! The context for my ping is zarr-developers/zarr-python#2102, so feel free to chime in there if you think something might help! 😊 |
Work in progress (not intended to merge - just playing)...
Trying to get familiar with the current Zarr v3 development code by seeing if I could use it for the simple example we have in the docs.
That sample needed updating - currently it looks like this:
FormatV05
class which creates Zarr v3 Stores (this will cause issues since theinit_store()
method returns different objects from the superclasses which return FSStoreasync
methods to load json etc.ZarrLocation.__init_metadata()
loads json. This is called duringZarrLocation.__init__
but you can't addasync
designation to constructors, so we need to move that do a separate methodinit_meta()
that is called immediately after creation.parse_url()
is now async, so we can't call it in a script without wrapping with e.g.asyncio.run(run())
above.zarr.json and chunk dirs are getting created in the current directory, not within a
test_ngff_image.zarr` group as intended....cc @joshmoore @normanrz