-
Notifications
You must be signed in to change notification settings - Fork 0
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
bugfix/parse-missing-wavelength #22
Conversation
xslt/Instrument.xsl
Outdated
<xsl:when test="LightSourceType/Laser"> | ||
<xsl:element name="ome:Laser"> | ||
<xsl:attribute name="ID"> | ||
<xsl:text>LightSource:</xsl:text> |
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.
fwiw ... this general pattern applies to all of the ID fields in the schema. See the respective fields in the OME schema and you'll see the rules for the respective fields
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.
@BrianWhitneyAI want to open a separate ticket to review our naming/usage to make sure this is satisfied everywhere?
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.
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.
Not sure if indenting got messed up between line 97 and 98 but the content looks reasonable to me.
Oh also maybe a unit test for this would be interesting. |
Description
This PR is a response to bioio-devs/bioio-czi#19 (comment). Our current transform from the czi schema to the OME schema does not account for an empty wavelength leading to parsing issues. Additionally, light sources need to be prefaced with "LightSource:"