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) |
|
-
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 { |
3927 | 3927 | catch (NullPointerException e) { } |
3928 | 3928 | |
3929 | 3929 | 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); |
3933 | 3933 | } |
3934 | 3934 | } |
3935 | 3935 | catch (NullPointerException e) { } |
-
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 { |
181 | 181 | Assert.assertNull(laser0.getPockelCell()); |
182 | 182 | Assert.assertNull(laser0.getPulse()); |
183 | 183 | Assert.assertNull(laser0.getRepetitionRate()); |
184 | | Assert.assertNull(laser0.getTuneable()); |
| 184 | Assert.assertNull(laser0.getTuning()); |
185 | 185 | Assert.assertNull(laser0.getWavelength()); |
186 | 186 | } |
187 | 187 | |
-
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
|
|
2018 | 2018 | </xsd:documentation> |
2019 | 2019 | </xsd:annotation> |
2020 | 2020 | </xsd:attribute> |
2021 | | <xsd:attribute name="Tuneable" use="optional" type="xsd:boolean"> |
| 2021 | <xsd:attribute name="Tuning" use="optional"> |
2022 | 2022 | <xsd:annotation> |
2023 | 2023 | <xsd:documentation> |
2024 | 2024 | Whether or not the laser is Tuneable [flag] |
2025 | 2025 | </xsd:documentation> |
2026 | 2026 | </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> |
2027 | 2033 | </xsd:attribute> |
2028 | 2034 | <xsd:attribute name="Pulse" use="optional"> |
2029 | 2035 | <xsd:annotation> |
Download in other formats:
1.3.13-PRO © 2008-2011
Agilo Software all
rights reserved
(this page was served in: 0.18155 sec.)