Skip to content

Commit

Permalink
Merge pull request #2553 from mtbc/add-enums
Browse files Browse the repository at this point in the history
add enumeration values for acquisition mode
  • Loading branch information
sbesson committed Sep 21, 2016
2 parents 2a6f77f + b7af4fe commit 7552d60
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/specification/released-schema/2016-06/ome.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:OME="http://www.openmicroscopy.org/Schemas/OME/2016-06"
xmlns:xml="http://www.w3.org/XML/1998/namespace"
version="1"
version="2"
elementFormDefault="qualified">

<xsd:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/xml.xsd"/>
Expand Down Expand Up @@ -689,6 +689,9 @@
<xsd:enumeration value="FSM"/><!-- Fluorescence speckle microscopy -->
<xsd:enumeration value="LCM"/><!-- Laser capture microdissection -->
<xsd:enumeration value="Other"/>
<xsd:enumeration value="BrightField"/>
<xsd:enumeration value="SweptFieldConfocal"/>
<xsd:enumeration value="SPIM"/><!-- Selective or Single Plane Illumination Microscopy -->
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
Expand Down
9 changes: 9 additions & 0 deletions components/specification/transforms/2016-06-to-2015-01.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,15 @@
<xsl:template match="OME:Folder"/>
<xsl:template match="OME:FolderRef"/>

<!-- Remove new enumeration values -->
<xsl:template match="OME:Channel/@AcquisitionMode[. = 'BrightField' or
. = 'SweptFieldConfocal' or
. = 'SPIM']">
<xsl:attribute name="AcquisitionMode">
<xsl:text>Other</xsl:text>
</xsl:attribute>
</xsl:template>

<!-- Default processing -->

<xsl:template match="@*|node()">
Expand Down
2 changes: 2 additions & 0 deletions components/xsd-fu/cfg/enum_handler.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
[AcquisitionMode]
".*Widefield.*" = "WideField"
"^Laser Scan Confocal$" = "LaserScanningConfocalMicroscopy"
"^Swept Field Confocal$" = "SweptFieldConfocal"

[Correction]
".*Pl.*Apo.*" = "PlanApo"
Expand Down

0 comments on commit 7552d60

Please sign in to comment.