From 667ebfcf1f0d3ba776047bbcc3d03de86aa4ec2a Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Tue, 13 Jul 2021 11:05:02 -0400 Subject: do not save data on the back stroke --- eitControl.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/eitControl.py b/eitControl.py index d258ae4..acf42e6 100644 --- a/eitControl.py +++ b/eitControl.py @@ -297,6 +297,13 @@ class Experiment: if swp is None: swp = self.sweeper + # skip data update based on independent variable (rfGen) sweep direction + sweep_direction = self.rfGenFunc.getSweepDirection(swp) + if sweep_direction < .5: + # sweep_direction is either 0 or 1 + # we do no data collection on the backward stroke + return + # global tic counter tic = self.sweeper.getCnt() self.data['tic'].append(tic) -- cgit v1.2.3