diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-06-22 16:57:03 -0400 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-06-22 16:57:03 -0400 |
commit | f818a270543f7b87ddb31238d31b80ff4b9255be (patch) | |
tree | 078bb7ce9540ec0e9883698aa76bd80547704067 /eitControl.py | |
parent | e68a587ee82e08f621859f786256af13495f6ec2 (diff) | |
download | qolab-f818a270543f7b87ddb31238d31b80ff4b9255be.tar.gz qolab-f818a270543f7b87ddb31238d31b80ff4b9255be.zip |
do not draw scan position if we have no points to show
Diffstat (limited to 'eitControl.py')
-rw-r--r-- | eitControl.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/eitControl.py b/eitControl.py index 1b4ed95..c8e7850 100644 --- a/eitControl.py +++ b/eitControl.py @@ -313,7 +313,8 @@ class Experiment: self.channelGraph[name]=self.dataPlot.plot(x,y, pen=None, symbol='o', symbolPen=None, symbolBrush=color, symbolSize=5, name=name) else: self.channelGraph[name].setData(x,y) - self.vLineSweepPosition.setValue(x[-1]) + if len(x)>0: + self.vLineSweepPosition.setValue(x[-1]) # centralFreqFormatted = pg.siFormat(self.fCent, suffix='Hz', precision=4) # showing trailing zeros is tricky fCent = self.rfGenFunc.getCenter() |