Skip to content

Feat/ome consolidated metadata - #97

Open
konstibob wants to merge 3 commits into
zarr-developers:mainfrom
konstibob:feat/ome-consolidated-metadata
Open

Feat/ome consolidated metadata#97
konstibob wants to merge 3 commits into
zarr-developers:mainfrom
konstibob:feat/ome-consolidated-metadata

Conversation

@konstibob

Copy link
Copy Markdown
Contributor

efficiency gain for ome zarr.

MultiscaleImage.open(handle) had to figure out which OME-Zarr version it was looking at. The version is written inside zarr.json. So it did the following:

  1. asked the store whether zarr.json exists
  2. read zarr.json
  3. found "version": "0.6", and discarded the file
  4. called v0_6.MultiscaleImage.openMultiscaleImage(handle)
  5. and that method read zarr.json again, from scratch

It builds the OME object from a group you already have. And openX(handle) is now just fromGroup(Group.open(handle)) — so the old entry point still exists and behaves the same, it's only split in two.

This applies to all three OME versions, 0.4 included.
opening a plate or image went from 3 requests to 1. A 0.4 plate went from 6 to 4.

@normanrz

normanrz commented Sep 4, 2026

Copy link
Copy Markdown
Member

Blocked until #91 lands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants