diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-07-13 11:05:02 -0400 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-07-13 11:05:02 -0400 |
commit | 667ebfcf1f0d3ba776047bbcc3d03de86aa4ec2a (patch) | |
tree | 978875738304679f04fb09832bf898f4516f3472 | |
parent | 3d4b282e58ed41d159abfcf2d08eb9bada9c0d37 (diff) | |
download | pyExpControl-667ebfcf1f0d3ba776047bbcc3d03de86aa4ec2a.tar.gz pyExpControl-667ebfcf1f0d3ba776047bbcc3d03de86aa4ec2a.zip |
do not save data on the back stroke
-rw-r--r-- | eitControl.py | 7 |
1 files changed, 7 insertions, 0 deletions
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) |