Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zoeprieto committed Aug 13, 2024
1 parent 83112b0 commit d503d49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mgxs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,12 @@ void Mgxs::metadata_from_hdf5(hid_t xs_id, const vector<double>& temperature,
(temperature[i] < temps_available[j + 1])) {
if (std::find(temps_to_read.begin(), temps_to_read.end(),
temps_available[j]) == temps_to_read.end()) {
temps_to_read.push_back(std::round((int)temps_available[j]));
temps_to_read.push_back(temps_available[j]);
}

if (std::find(temps_to_read.begin(), temps_to_read.end(),
temps_available[j + 1]) == temps_to_read.end()) {
temps_to_read.push_back(std::round((int)temps_available[j + 1]));
temps_to_read.push_back(temps_available[j + 1]);
}
break;
}
Expand Down

0 comments on commit d503d49

Please sign in to comment.