-
Notifications
You must be signed in to change notification settings - Fork 42
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
Disallow mismatching axes units and types #91
Comments
I would be fine with option one (space and time must be in the given list of units). |
Cross-linking to glencoesoftware/bioformats2raw#144 which brought up the issue of tightening the list of units for space/time and optionally supplementing it by a subset of units defined in the OME specification but not in the NGFF one. From the discussion esp. glencoesoftware/bioformats2raw#144 (comment), extensibility is probably the primary concept that would speak against maintaining a specified list of allowed spatial/temporal units. In my mind, there are two questions:
For reference, similar discussions had happened for OME XSD specification in the context of other enumerations such as |
For the time units, a few common acquisitions come to mind,
Can these be supported? |
See discussion at #87 (comment)
Units were introduced in #57 at a SHOULD level of requirement, primarily for extensibility reasons as well as support for axes with arbitrary units. A large part of the discussion about units revolved about the unit validation and the usage of udunits2 as current reference library.
The following
axes
dictionary is valid according with the current draft version of the specification but is not recommended as the unit is not part of the subset of recommended time units:My opinion is that this (potentially corner) case this should be flagged as invalid by the specification.
Using the current specification, I see two immediate ways to enforce this constraint:
space
andtime
axes types i.e. rewritengff/latest/index.bs
Lines 228 to 230 in 18fc37b
space
ortime
type is specified, it MUST be part of the specified subsettime
unit to be associated with aspace
axis (and inversely)The text was updated successfully, but these errors were encountered: