Skip to content

Commit

Permalink
Fix a couple of compile warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
melissalinkert committed Apr 18, 2024
1 parent e946dc5 commit dfbfdc6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,7 @@ else if (name.equals("VIMSLIDE_POSITION_BUFFER")) {
if (objectiveMag != null) {
try {
store.setObjectiveNominalMagnification(
new Double(objectiveMag), 0, 0);
DataTools.parseDouble(objectiveMag), 0, 0);
}
catch (NumberFormatException e) {
LOGGER.debug(
Expand Down Expand Up @@ -1043,7 +1043,7 @@ else if (name.equals("VIMSLIDE_POSITION_BUFFER")) {
store.setDetectorSettingsID(detector, 0, c);
if (gain != null) {
try {
store.setDetectorSettingsGain(new Double(gain), 0, c);
store.setDetectorSettingsGain(DataTools.parseDouble(gain), 0, c);
}
catch (NumberFormatException e) {
LOGGER.debug("Could not parse channel gain {}", gain);
Expand Down

0 comments on commit dfbfdc6

Please sign in to comment.