aboutsummaryrefslogtreecommitdiffstats
path: root/dpd/src/Measure_Shoulders.py
diff options
context:
space:
mode:
authorandreas128 <Andreas>2017-09-27 12:49:04 +0200
committerandreas128 <Andreas>2017-09-27 12:49:04 +0200
commit02a0b7419fc5b7aaf18fb9be4ed0888defa77e2d (patch)
treec49c05edc82af242de4b07ad97a9d3307457f072 /dpd/src/Measure_Shoulders.py
parent38e4b3a35d4265844641d4527d8952080c0d0d79 (diff)
downloaddabmod-02a0b7419fc5b7aaf18fb9be4ed0888defa77e2d.tar.gz
dabmod-02a0b7419fc5b7aaf18fb9be4ed0888defa77e2d.tar.bz2
dabmod-02a0b7419fc5b7aaf18fb9be4ed0888defa77e2d.zip
Move consts to Const.py; Cleanup
Diffstat (limited to 'dpd/src/Measure_Shoulders.py')
-rw-r--r--dpd/src/Measure_Shoulders.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/dpd/src/Measure_Shoulders.py b/dpd/src/Measure_Shoulders.py
index acb05b4..710e800 100644
--- a/dpd/src/Measure_Shoulders.py
+++ b/dpd/src/Measure_Shoulders.py
@@ -61,7 +61,7 @@ def shoulder_from_sig_offset(arg):
return peak-shoulder, peak, shoulder
-class Measure_Shoulder:
+class Measure_Shoulders:
"""Calculate difference between the DAB signal and the shoulder hight in the
power spectrum"""
@@ -75,7 +75,7 @@ class Measure_Shoulder:
dt = datetime.datetime.now().isoformat()
fig_path = logging_path + "/" + dt + "_sync_subsample_aligned.svg"
- fft = calc_fft_db(signal, 100)
+ fft = calc_fft_db(signal, 100, 10)
peak, idxs_peak = self._calc_peak(fft)
shoulder, idxs_sh = self._calc_shoulder_hight(fft, self.c)