aboutsummaryrefslogtreecommitdiff
path: root/eitControl.py
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2021-06-22 16:57:03 -0400
committerEugeniy E. Mikhailov <evgmik@gmail.com>2021-06-22 16:57:03 -0400
commitf818a270543f7b87ddb31238d31b80ff4b9255be (patch)
tree078bb7ce9540ec0e9883698aa76bd80547704067 /eitControl.py
parente68a587ee82e08f621859f786256af13495f6ec2 (diff)
downloadpyExpControl-3.3.tar.gz
pyExpControl-3.3.zip
do not draw scan position if we have no points to showv3.3
Diffstat (limited to 'eitControl.py')
-rw-r--r--eitControl.py3
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()