Skip to content

Commit

Permalink
fixed resampling bug in calibrations
Browse files Browse the repository at this point in the history
- was not resampling the measurements which led to failure when improper numbers
of points entered in measurement files.
  • Loading branch information
PetePupalaikis committed Apr 27, 2021
1 parent a34a2a7 commit caf1b82
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion SignalIntegrity/Lib/Measurement/Calibration/Calibration.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,9 @@ def _CalculateUnknownThruErrorTerms(self,measurements):
else Sestsp[max(n-1,0)],driven,other)
Sest=SParameters(self.f,Sestsp)
Sest=Sest.LimitImpulseResponseLength(meas.limit)
Sest.WriteToFile('RecoveredThru')
# pragma: silent exclude
#Sest.WriteToFile('RecoveredThru')
# pragma: include
measurements[other][driven].append(
ThruCalibrationMeasurement(
meas.Smeasured.FrequencyResponse(1,1),
Expand Down
2 changes: 1 addition & 1 deletion SignalIntegrity/Lib/Parsers/CalibrationParser.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def _ProcessCalibrationLine(self,line):
if tokenValue == 'None':
self.m_spc[tokenValue] = None
elif not tokenValue in self.m_spc:
self.m_spc[tokenValue] = SParameterFile(tokenValue)
self.m_spc[tokenValue] = SParameterFile(tokenValue).Resample(self.m_f)
measDict['std']=self.m_spc[tokenValue]
elif tokenName == 'pn':
measDict['driven']=port=int(tokenValue)
Expand Down

0 comments on commit caf1b82

Please sign in to comment.