Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.

Ticket #12121: 0005-specification-Add-Tuning-enum.patch

File 0005-specification-Add-Tuning-enum.patch, 3.1 KB (added by rleigh, 10 years ago)
  • components/formats-api/src/loci/formats/meta/MetadataConverter.java

    From 555ff7879a6387a0f6c87d58b63556ab2494fbc3 Mon Sep 17 00:00:00 2001
    From: Roger Leigh <r.leigh@dundee.ac.uk>
    Date: Fri, 18 Apr 2014 16:04:27 +0100
    Subject: [PATCH 5/7] specification: Add Tuning enum
    
    ---
     .../formats-api/src/loci/formats/meta/MetadataConverter.java      | 6 +++---
     .../test/spec/schema/Schema2011_06_Instrument_Upgrade_Test.java   | 2 +-
     components/specification/released-schema/2013-10-dev-2/ome.xsd    | 8 +++++++-
     3 files changed, 11 insertions(+), 5 deletions(-)
    
    diff --git a/components/formats-api/src/loci/formats/meta/MetadataConverter.java b/components/formats-api/src/loci/formats/meta/MetadataConverter.java
    index b3ca4cc..456652f 100644
    a b public final class MetadataConverter { 
    39273927        catch (NullPointerException e) { } 
    39283928 
    39293929        try { 
    3930           Boolean tuneable = src.getLaserTuneable(instrumentIndex, lightSource); 
    3931           if (tuneable != null) { 
    3932             dest.setLaserTuneable(tuneable, instrumentIndex, lightSource); 
     3930          Tuning tuning = src.getLaserTuning(instrumentIndex, lightSource); 
     3931          if (tuning != null) { 
     3932            dest.setLaserTuning(tuning, instrumentIndex, lightSource); 
    39333933          } 
    39343934        } 
    39353935        catch (NullPointerException e) { } 
  • components/formats-bsd/test/spec/schema/Schema2011_06_Instrument_Upgrade_Test.java

    diff --git a/components/formats-bsd/test/spec/schema/Schema2011_06_Instrument_Upgrade_Test.java b/components/formats-bsd/test/spec/schema/Schema2011_06_Instrument_Upgrade_Test.java
    index dcd51a2..31fb6dc 100644
    a b public class Schema2011_06_Instrument_Upgrade_Test { 
    181181        Assert.assertNull(laser0.getPockelCell()); 
    182182        Assert.assertNull(laser0.getPulse()); 
    183183        Assert.assertNull(laser0.getRepetitionRate()); 
    184         Assert.assertNull(laser0.getTuneable()); 
     184        Assert.assertNull(laser0.getTuning()); 
    185185        Assert.assertNull(laser0.getWavelength()); 
    186186    } 
    187187 
  • components/specification/released-schema/2013-10-dev-2/ome.xsd

    diff --git a/components/specification/released-schema/2013-10-dev-2/ome.xsd b/components/specification/released-schema/2013-10-dev-2/ome.xsd
    index 19d8880..115ea8e 100644
    a b  
    20182018                                        </xsd:documentation> 
    20192019                                </xsd:annotation> 
    20202020                        </xsd:attribute> 
    2021                         <xsd:attribute name="Tuneable" use="optional" type="xsd:boolean"> 
     2021                        <xsd:attribute name="Tuning" use="optional"> 
    20222022                                <xsd:annotation> 
    20232023                                        <xsd:documentation> 
    20242024                                                Whether or not the laser is Tuneable [flag] 
    20252025                                        </xsd:documentation> 
    20262026                                </xsd:annotation> 
     2027                                <xsd:simpleType> 
     2028                                        <xsd:restriction base="xsd:string"> 
     2029                                                <xsd:enumeration value="None"/> 
     2030                                                <xsd:enumeration value="Tuneable"/> 
     2031                                        </xsd:restriction> 
     2032                                </xsd:simpleType> 
    20272033                        </xsd:attribute> 
    20282034                        <xsd:attribute name="Pulse" use="optional"> 
    20292035                                <xsd:annotation> 

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.18155 sec.)

We're Hiring!