Skip to content

Give the minimal label cases a multiscales and add missing_multiscales - #56

Merged
kevinyamauchi merged 2 commits into
German-BioImaging:mainfrom
vboussot:fix/label-cases-need-multiscales
Nov 13, 2026
Merged

kevinyamauchi merged 2 commits into
German-BioImaging:mainfrom
vboussot:fix/label-cases-need-multiscales

Conversation

@vboussot

Copy link
Copy Markdown
Contributor

Follow-up to #51. A label image must implement the multiscales specification (0.4 L462, 0.5 L421, 0.6 L1496), but the valid minimal label documents had only image-label.

The six valid parse_attributes label cases now carry the multiscales of their validate_zarr twins, so they stay minimal and every implementation should agree on them. The old document becomes a missing_multiscales case for each version, as a document and as a hierarchy.

Checked with ngff-zarr: the valid cases pass and the new invalid ones fail. Schema-only validators will still accept missing_multiscales, since label.schema does not require multiscales.

A label image must implement the multiscales specification (0.4: "image-label
groups MUST also contain multiscales metadata"; 0.5 and 0.6: "The zarr.json
file for the label image MUST implement the multiscales specification"). The
valid parse_attributes label cases had only image-label, so a reader that
follows the text refused them. They now carry the multiscales of their
validate_zarr twins, and a missing_multiscales case holds the old document,
as a parse_attributes document and as a hierarchy, for each version.

Discussed in German-BioImaging#51.

@clbarnes clbarnes left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Valentin!

Without multiscales, nothing in the label group points at its array, and
the case only needs the label group to show that it is invalid.
@vboussot
vboussot requested a review from clbarnes November 11, 2026 11:39

@kevinyamauchi kevinyamauchi left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! Thanks, @vboussot !

@kevinyamauchi
kevinyamauchi merged commit 666e699 into German-BioImaging:main Nov 13, 2026
12 checks passed
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.

3 participants