summaryrefslogtreecommitdiffstats
path: root/dpd/src/Measure_Shoulders.py
diff options
context:
space:
mode:
authorandreas128 <Andreas>2017-09-28 18:59:35 +0200
committerandreas128 <Andreas>2017-09-28 18:59:35 +0200
commit253be52c23528544d54a59b649a60193fffb2848 (patch)
tree67bd74ca1f35ec0dc7dee34207b5aa652443e485 /dpd/src/Measure_Shoulders.py
parent74765b949c8d597ec906fd49733a035028095d54 (diff)
downloaddabmod-253be52c23528544d54a59b649a60193fffb2848.tar.gz
dabmod-253be52c23528544d54a59b649a60193fffb2848.tar.bz2
dabmod-253be52c23528544d54a59b649a60193fffb2848.zip
Cleanup
Diffstat (limited to 'dpd/src/Measure_Shoulders.py')
-rw-r--r--dpd/src/Measure_Shoulders.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/dpd/src/Measure_Shoulders.py b/dpd/src/Measure_Shoulders.py
index 710e800..7d48a2b 100644
--- a/dpd/src/Measure_Shoulders.py
+++ b/dpd/src/Measure_Shoulders.py
@@ -101,6 +101,10 @@ class Measure_Shoulders:
plt.close(fig)
def average_shoulders(self, signal, n_avg=None):
+ if not self.c.MS_enable:
+ logging.debug("Shoulder Measurement disabled")
+ return None
+
assert signal.shape[0] > 4 * self.c.MS_FFT_size
if n_avg is None: n_avg = self.c.MS_averaging_size