From af483e7f79fc011c4adea0ab05918f374f6df348 Mon Sep 17 00:00:00 2001 From: Melissa Linkert Date: Wed, 24 Apr 2024 11:09:35 -0500 Subject: [PATCH] Use Double.parseDouble instead of DataTools.parseDouble to fix one more test failure --- .../formats-gpl/src/loci/formats/in/FlexReader.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/components/formats-gpl/src/loci/formats/in/FlexReader.java b/components/formats-gpl/src/loci/formats/in/FlexReader.java index 01c9f06de9c..fa52973495f 100644 --- a/components/formats-gpl/src/loci/formats/in/FlexReader.java +++ b/components/formats-gpl/src/loci/formats/in/FlexReader.java @@ -1552,7 +1552,7 @@ else if (qName.equals("Barcode")) { else if (qName.equals("Wavelength") && populateCore) { String lsid = MetadataTools.createLSID("LightSource", 0, nextLaser); store.setLaserID(lsid, 0, nextLaser); - Double wavelength = DataTools.parseDouble(value); + Double wavelength = Double.parseDouble(value); Length wave = FormatTools.getWavelength(wavelength); if (wave != null) { store.setLaserWavelength(wave, 0, nextLaser); @@ -1566,11 +1566,11 @@ else if (qName.equals("Wavelength") && populateCore) { } } else if (qName.equals("Magnification") && populateCore) { - store.setObjectiveCalibratedMagnification(DataTools.parseDouble(value), 0, + store.setObjectiveCalibratedMagnification(Double.parseDouble(value), 0, nextObjective); } else if (qName.equals("NumAperture") && populateCore) { - store.setObjectiveLensNA(DataTools.parseDouble(value), 0, nextObjective); + store.setObjectiveLensNA(Double.parseDouble(value), 0, nextObjective); } else if (qName.equals("Immersion") && populateCore) { String immersion = "Other"; @@ -1656,10 +1656,10 @@ else if (qName.equals("PositionZ")) { } } else if (qName.equals("TimepointOffsetUsed")) { - planeDeltaT.add(DataTools.parseDouble(value)); + planeDeltaT.add(Double.parseDouble(value)); } else if (qName.equals("CameraExposureTime")) { - planeExposureTime.add(DataTools.parseDouble(value)); + planeExposureTime.add(Double.parseDouble(value)); } else if (qName.equals("LightSourceCombinationRef")) { lightSourceCombinationRefs.add(value);