Skip to content

Commit

Permalink
SOLR debugging tools
Browse files Browse the repository at this point in the history
1) write the recovered thru to a file
2) accept no thru provided in SOLR
  • Loading branch information
PetePupalaikis committed Apr 24, 2021
1 parent c290b17 commit a34a2a7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SignalIntegrity/App/DeviceNetListLine.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def NetListLine(self,device):
if kwc['ShowKeyword']:
returnstring=returnstring+kwc['Keyword']+' '
valueString=device[kwc['Keyword']].PropertyString(stype='netlist')
if valueString is None:
if valueString == None or valueString == '':
valueString='None'
returnstring=returnstring+valueString
return returnstring
1 change: 1 addition & 0 deletions SignalIntegrity/Lib/Measurement/Calibration/Calibration.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ 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')
measurements[other][driven].append(
ThruCalibrationMeasurement(
meas.Smeasured.FrequencyResponse(1,1),
Expand Down
4 changes: 3 additions & 1 deletion SignalIntegrity/Lib/Parsers/CalibrationParser.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ def _ProcessCalibrationLine(self,line):
if tokenName == 'file':
measDict['raw']=SParameterFile(tokenValue).Resample(self.m_f)
elif tokenName == 'std':
if not tokenValue in self.m_spc:
if tokenValue == 'None':
self.m_spc[tokenValue] = None
elif not tokenValue in self.m_spc:
self.m_spc[tokenValue] = SParameterFile(tokenValue)
measDict['std']=self.m_spc[tokenValue]
elif tokenName == 'pn':
Expand Down

0 comments on commit a34a2a7

Please sign in to comment.