aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2022-01-02 23:59:00 -0500
committerEugeniy E. Mikhailov <evgmik@gmail.com>2022-01-02 23:59:00 -0500
commit62922398dcc67b1ef02d5bed89a39dfb9cde26bb (patch)
tree01f67aa7803cdb9f8b7f438c4132a664292dd3da
parent83a8bc275d0b46ee9ea9da6b3ad24dece6baab05 (diff)
downloadpyExpControl-62922398dcc67b1ef02d5bed89a39dfb9cde26bb.tar.gz
pyExpControl-62922398dcc67b1ef02d5bed89a39dfb9cde26bb.zip
get rid of magic number
-rw-r--r--qolab/hardware/scope/sds1104x.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/qolab/hardware/scope/sds1104x.py b/qolab/hardware/scope/sds1104x.py
index c950046..e0653d9 100644
--- a/qolab/hardware/scope/sds1104x.py
+++ b/qolab/hardware/scope/sds1104x.py
@@ -113,7 +113,7 @@ class SDS1104X(ScopeSCPI):
trRaw.values = wfRaw.reshape(wfRaw.size,1)
if decimate and sparsing != 1:
numtaps = 3; # not sure it is the best case
- trRaw.values = scipy.signal.decimate(trRaw.values, sparsing, 3, axis=0)
+ trRaw.values = scipy.signal.decimate(trRaw.values, sparsing, numtaps, axis=0)
except ValueError as err:
# most likely we get crazy number of points
# self.read() # flushing the bogus output of previous command