Skip to content

Commit

Permalink
fixes for help system generation
Browse files Browse the repository at this point in the history
  • Loading branch information
PetePupalaikis committed Sep 1, 2021
1 parent b7054b2 commit 6715c5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
20 changes: 2 additions & 18 deletions SignalIntegrity/App/EyeDiagramPropertiesDialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,14 @@ def __init__(self,parent,project):
self.MaxYFrame=CalculationPropertySI(self.YAxisFrame,'Maximum Y',self.onUpdateSaturation,None,project,'EyeDiagram.YAxis.Max','V')
self.MinYFrame=CalculationPropertySI(self.YAxisFrame,'Minimum Y',self.onUpdateSaturation,None,project,'EyeDiagram.YAxis.Min','V')
self.Mode=CalculationPropertyChoices(self.JitterNoiseFrame,'Eye Mode',None,self.onUpdateCalculate,self.ModeChoices,project,'EyeDiagram.Mode')
self.JitterPercentUI=CalculationPropertySI(self.JitterNoiseFrame,'Random Jitter (% UI)',self.onUpdateJitterPercentUI,None,project,'EyeDiagram.JitterNoise.JitterPercentUI','%')
self.JitterSeconds=CalculationPropertySI(self.JitterNoiseFrame,'Random Jitter (s)',self.onUpdateJitterSeconds,None,project,'EyeDiagram.JitterNoise.JitterS','s')
self.JitterDeterministicPercentUIPk=CalculationPropertySI(self.JitterNoiseFrame,'Deterministic Jitter (% UI, pk)',self.onUpdateJitterDeterministicPercentUI,None,project,'EyeDiagram.JitterNoise.JitterDeterministicPercentUIPk','%')
self.JitterDeterministicPkS=CalculationPropertySI(self.JitterNoiseFrame,'Deterministic Jitter (s, pk)',self.onUpdateDeterministicJitterSeconds,None,project,'EyeDiagram.JitterNoise.JitterDeterministicPkS','s')
self.Noise=CalculationPropertySI(self.JitterNoiseFrame,'Noise',self.onUpdateNoise,None,project,'EyeDiagram.JitterNoise.Noise','V')
self.MaxWindowWidthHeightPixels=CalculationPropertySI(self.JitterNoiseFrame,'Max window dimensions',self.onUpdateMaxWindowWidthHeightPixels,None,project,'EyeDiagram.JitterNoise.MaxWindowPixels','pixels')
self.MaxWindowWidthHeightPixels=CalculationPropertySI(self.JitterNoiseFrame,'Max Window Dimensions',self.onUpdateMaxWindowWidthHeightPixels,None,project,'EyeDiagram.JitterNoise.MaxWindowPixels','pixels')
self.Invert=CalculationPropertyTrueFalseButton(self.EyeFrame,'Invert Plot',self.onUpdateInvert,None,project,'EyeDiagram.Invert')
self.LogIntensityFrame=tk.Frame(self.JitterNoiseFrame)
self.LogIntensityFrame.pack(side=tk.TOP,fill=tk.X,expand=tk.NO)
self.LogIntensity=CalculationPropertyTrueFalseButton(self.LogIntensityFrame,'Log intensity',self.onUpdateLogIntensity,None,project,'EyeDiagram.JitterNoise.LogIntensity.LogIntensity')
self.LogIntensity=CalculationPropertyTrueFalseButton(self.LogIntensityFrame,'Log Intensity',self.onUpdateLogIntensity,None,project,'EyeDiagram.JitterNoise.LogIntensity.LogIntensity')
self.MinBERExponent=CalculationProperty(self.LogIntensityFrame,'Min BER exponent',self.onUpdateMinBERExponent,None,project,'EyeDiagram.JitterNoise.LogIntensity.MinBERExponent')
self.MinBERSaturation=CalculationProperty(self.LogIntensityFrame,'Min BER saturation',self.onUpdateMinBERSaturation,None,project,'EyeDiagram.JitterNoise.LogIntensity.MinBERSaturationPercent')
self.MaxBERExponent=CalculationProperty(self.LogIntensityFrame,'Max BER exponent',self.onUpdateMaxBERExponent,None,project,'EyeDiagram.JitterNoise.LogIntensity.MaxBERExponent')
Expand Down Expand Up @@ -120,9 +118,7 @@ def UpdateStrings(self,calculate=True):
self.ScaleYFrame.UpdateStrings()
jitterNoiseMode=(self.project['EyeDiagram.Mode'] == 'JitterNoise')
self.LogIntensityFrame.pack_forget()
self.JitterPercentUI.Show(jitterNoiseMode)
self.JitterSeconds.Show(jitterNoiseMode)
self.JitterDeterministicPercentUIPk.Show(jitterNoiseMode)
self.JitterDeterministicPkS.Show(jitterNoiseMode)
self.Noise.Show(jitterNoiseMode)
self.MaxWindowWidthHeightPixels.Show(jitterNoiseMode)
Expand All @@ -133,21 +129,9 @@ def UpdateStrings(self,calculate=True):
self.MinBERSaturation.Show(jitterNoiseMode and logIntensity)
self.MaxBERExponent.Show(jitterNoiseMode and logIntensity)
self.MaxBERSaturation.Show(jitterNoiseMode and logIntensity)
def onUpdateJitterPercentUI(self,_):
self.project['EyeDiagram.JitterNoise.JitterS'] = self.project['EyeDiagram.JitterNoise.JitterPercentUI']/100./self.parent.eyeDiagram.baudrate
self.JitterSeconds.UpdateStrings()
self.UpdateStrings()
def onUpdateJitterSeconds(self,_):
self.project['EyeDiagram.JitterNoise.JitterPercentUI'] = self.project['EyeDiagram.JitterNoise.JitterS']*self.parent.eyeDiagram.baudrate*100.
self.JitterPercentUI.UpdateStrings()
self.UpdateStrings()
def onUpdateJitterDeterministicPercentUI(self,_):
self.project['EyeDiagram.JitterNoise.JitterDeterministicPkS'] = self.project['EyeDiagram.JitterNoise.JitterDeterministicPercentUIPk']/100./self.parent.eyeDiagram.baudrate
self.JitterDeterministicPkS.UpdateStrings()
self.UpdateStrings()
def onUpdateDeterministicJitterSeconds(self,_):
self.project['EyeDiagram.JitterNoise.JitterDeterministicPercentUIPk'] = self.project['EyeDiagram.JitterNoise.JitterDeterministicPkS']*self.parent.eyeDiagram.baudrate*100.
self.JitterDeterministicPercentUIPk.UpdateStrings()
self.UpdateStrings()
def onUpdateNoise(self,_):
self.UpdateStrings()
Expand Down
2 changes: 0 additions & 2 deletions SignalIntegrity/App/PreferencesFile.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@ def __init__(self):
class EyeJitterNoiseConfiguration(XMLConfiguration):
def __init__(self):
super().__init__('JitterNoise')
self.Add(XMLPropertyDefaultFloat('JitterPercentUI',0))
self.Add(XMLPropertyDefaultFloat('JitterS',0))
self.Add(XMLPropertyDefaultFloat('JitterDeterministicPercentUIPk',0))
self.Add(XMLPropertyDefaultFloat('JitterDeterministicPkS',0))
self.Add(XMLPropertyDefaultFloat('Noise',0.0))
self.Add(XMLPropertyDefaultInt('MaxWindowPixels',100000))
Expand Down

0 comments on commit 6715c5d

Please sign in to comment.