Skip to content

omero fields optional - #87

Open
will-moore wants to merge 27 commits into
ome:mainfrom
will-moore:omero_metadata_optional
Open

omero fields optional#87
will-moore wants to merge 27 commits into
ome:mainfrom
will-moore:omero_metadata_optional

Conversation

@will-moore

@will-moore will-moore commented Feb 5, 2026

Copy link
Copy Markdown
Member

Fixes ome/ngff#192

ported from ome/ngff#297

@github-actions

github-actions Bot commented Feb 5, 2026

Copy link
Copy Markdown

Automated Review URLs

Comment thread index.md Outdated
Comment thread index.md Outdated
Comment thread index.md Outdated
will-moore and others added 4 commits February 5, 2026 10:33
Co-authored-by: Johannes Soltwedel <38459088+jo-mueller@users.noreply.github.com>
Co-authored-by: Johannes Soltwedel <38459088+jo-mueller@users.noreply.github.com>
@jo-mueller

Copy link
Copy Markdown
Contributor

@will-moore small bump here to have a look at will-moore#2 to have this move forward :)

@lubianat lubianat left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I am not super familiar with details, but it looks good as far as I can tell.

@jo-mueller
jo-mueller requested a review from joshmoore March 4, 2026 23:13
"label": "Channel:2",
"color": "#0000ff",
"active": true,
"family": "gamma",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

that does not exist as a mapping family

"label": "Channel:1",
"color": "#00ff00",
"active": true,
"family": "log",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

logarithmic is the term I believe we have for the rendering defi

"label": "Channel:1",
"color": "#00ff00",
"active": true,
"family": "log",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

same

"label": "Channel:2",
"color": "#0000ff",
"active": true,
"family": "gamma",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

same

Comment thread index.md Outdated
- `label` (string) Channel name.
- `active` (boolean) Indicates whether the channel should be displayed.
- `coefficient`: (float) Value to multiply the pixel values of the channel by when rendering.
- `family`: (string) Used transfer function family for rendering the channel, e.g. "linear", "log", "gamma".

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

this is not correct

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

we have in the omero rnd: linear, logarithmic, exponential and polynomial.
I believe what you refer as "gamma" will be polynomial.
I would avoid the divergence that we already have at the model level (see comment below)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think this originates from a PR of mine to this one. I didn't find these terms (i.e., "family" precisely defined anywhere), so I kept it vague. Would be nice to have this clearly mapped out somewhere, i.e., here :)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I think we should remove the "family" and "coefficient" terms from the "omero" examples and docs.
They have never been defined before, and are still not clear, so I don't think they will have ever been used.

Comment thread version_history.md Outdated
- For detailed set of changes see [complete overview](https://ngff.openmicroscopy.org/rfc/5/responses/2/index.html)
- Updated version keys from `0.6.dev2` to `0.6.dev3` everywhere
- style: Homogeneous use of backticks in spec document
- spec: Released requirements for `omero` metadata in the spec document and in schemas.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We should be more explicit and use the term specification

@jburel

jburel commented Mar 5, 2026

Copy link
Copy Markdown
Member

This could also be an opportunity to fix the model value color is not a value used by omero it is rgb

"channels": [
{
"label": "Channel:0",
"color": "#ff0000",

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

All the color values shouldn't include the #.
Definition below is:
(string) String of 6 hexadecimal digits specifying the color of the channel in RGB format.

@will-moore

Copy link
Copy Markdown
Member Author

@jburel We're not changing the color definition here. This PR should not be a breaking change. We're just making some fields optional. The definition for color is:

(string) String of 6 hexadecimal digits specifying the color of the channel in RGB format.

No mention of OMERO.

@jburel

jburel commented Mar 9, 2026

Copy link
Copy Markdown
Member

to clarify I am referring to "model": "color" . We are using "omero" metadata but the model in ome-zarr is color and the omero-model is rgb.

@jo-mueller

Copy link
Copy Markdown
Contributor

@jburel @will-moore is there a central place where the fields and possible values of the omero metadata model are documented? There's a link in the spec text but explains some fields, but not all (i.e., family, etc)

@joshmoore

Copy link
Copy Markdown
Member

@will-moore @jburel: would you like to get this into one of the upcoming .dev versions? And if so, when would you be thinking?

@joshmoore
joshmoore marked this pull request as draft July 2, 2026 12:30
@will-moore

Copy link
Copy Markdown
Member Author

I actually thought this had made it into v0.6.
So, yes. As soon as possible, thanks.

@joshmoore

Copy link
Copy Markdown
Member

@jni is leading dev1 so I'll defer. Otherwise we can get it on a board for dev2 and discuss.

@jni

jni commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

@will-moore there's a number of unresolved comments here. (log->logarithmic, removing "gamma", removing "#" from the color). Otherwise, I'm happy for this to go into 0.9.dev1 which is due ~end August. Note also that I don't have merge rights in this repo 😅 so someone else will have to do so, presumably after 0.6 is out. (Although, given the backwards compatibility of the change, I would not be opposed if it went into 0.6.rc1/final. CC @jo-mueller)

@jni jni moved this to Backlog in OME-Zarr 0.9.dev1 Jul 21, 2026
@will-moore

Copy link
Copy Markdown
Member Author

I think that is all the fixes done.
I was checking https://omero.readthedocs.io/en/stable/developers/Web/WebGateway.html#imgdata for any reference to coefficient and family but it has no info on these and actually has less info than is in these docs themselves so I've removed that link.

I also have therefore also removed the coefficient and family fields from the omero block since these have never been defined and never used AFAIK.

@jni

jni commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Great. @will-moore do you want to mark this as ready for review then?

@jo-mueller what do you think about shipping this with 0.6 final?

@will-moore
will-moore marked this pull request as ready for review July 22, 2026 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status
Status: Backlog

Development

Successfully merging this pull request may close these issues.

relax omero metadata

6 participants