Skip to content

Commit

Permalink
Use Double.parseDouble instead of DataTools.parseDouble to fix one mo…
Browse files Browse the repository at this point in the history
…re test failure
  • Loading branch information
melissalinkert committed Apr 24, 2024
1 parent 7865d78 commit af483e7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions components/formats-gpl/src/loci/formats/in/FlexReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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";
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit af483e7

Please sign in to comment.