Skip to content

Commit

Permalink
initialize missing measurements to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
jankae committed Sep 18, 2024
1 parent 5fd7734 commit f9d1b0d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,7 @@ void Calibration::correctMeasurement(DeviceDriver::VNAMeasurement &d)
auto name = "S"+QString::number(pRcv)+QString::number(pSrc);
if(d.measurements.count(name) == 0) {
qWarning() << "Missing measurement for calibration:" << name;
S(j,i) = 0.0;
} else {
// grab measurement and remove isolation here
S(j,i) = d.measurements[name];
Expand Down

0 comments on commit f9d1b0d

Please sign in to comment.