aboutsummaryrefslogtreecommitdiff
path: root/eitControl.py
diff options
context:
space:
mode:
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()