Skip to content
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

Merged
merged 3 commits into from
Dec 13, 2024

Conversation

BrianWhitneyAI
Copy link
Contributor

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:"

<xsl:when test="LightSourceType/Laser">
<xsl:element name="ome:Laser">
<xsl:attribute name="ID">
<xsl:text>LightSource:</xsl:text>

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

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

#23

Copy link

@toloudis toloudis left a 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.

@toloudis
Copy link

Oh also maybe a unit test for this would be interesting.

@BrianWhitneyAI BrianWhitneyAI merged commit d3fe493 into main Dec 13, 2024
3 checks passed
@BrianWhitneyAI BrianWhitneyAI deleted the bugfix/parse-missing-wavelength branch December 13, 2024 23:54
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