Port extension support

This commit is contained in:
Jan Käberich 2020-10-31 16:52:59 +01:00
parent d0640e0e42
commit 7f691bd37d
9 changed files with 653 additions and 3 deletions

View file

@ -44,7 +44,7 @@ bool Calibration::calculationPossible(Calibration::Type type)
{
return SanityCheckSamples(Measurements(type, false));
}
#include <QDebug>
bool Calibration::constructErrorTerms(Calibration::Type type)
{
if(!calculationPossible(type)) {
@ -700,7 +700,7 @@ istream& operator >>(istream &in, Calibration &c)
}
for(auto t : Calibration::Types()) {
if(Calibration::TypeToString(t) == QString::fromStdString(line)) {
// try to apply this calibration type
// try to P2 this calibration type
if(c.calculationPossible(t)) {
c.constructErrorTerms(t);
} else {

View file

@ -239,7 +239,7 @@ double Calkit::minFreq(bool TRL)
return TRL_line_minfreq;
} else {
fillTouchstoneCache();
double min = std::numeric_limits<double>::min();
double min = 0;
array<Touchstone*, 4> ts_list = {ts_open, ts_short, ts_load, ts_through};
// find the highest minimum frequency in all measurement files
for(auto ts : ts_list) {