Skip to content

Commit

Permalink
Minor clean up after testing pressure curve point loading.
Browse files Browse the repository at this point in the history
  • Loading branch information
kurikaesu committed Nov 9, 2021
1 parent 4602831 commit e7ce67d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/transfer_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -472,11 +472,10 @@ void transfer_handler::submitMapping(const nlohmann::json& config) {
pressureCurve.clear();
if (config.contains("pressure_curve")) {
for (auto curvePoints: config["pressure_curve"].items()) {
int x = curvePoints.value().at(0);
int y = curvePoints.value().at(1);
pressureCurve.emplace_back(
std::pair(
curvePoints.value().at(0),
curvePoints.value().at(1)
));
std::pair(x, y));
}
}

Expand Down

0 comments on commit e7ce67d

Please sign in to comment.