summaryrefslogtreecommitdiffstats
path: root/dpd/src/Measure_Shoulders.py
diff options
context:
space:
mode:
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