From 923e649dd68d4439fea4887ed16a980ca5c188be Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 2 Jun 2010 01:31:44 -0400 Subject: [PATCH] Fix 'min_deviations + std' -> 'min_deviations * std' in hooke.util.peak Oops :p. --- hooke/util/peak.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooke/util/peak.py b/hooke/util/peak.py index 7b90c7d..185f04d 100644 --- a/hooke/util/peak.py +++ b/hooke/util/peak.py @@ -340,7 +340,7 @@ def above_noise(data, side='both', min_deviations=5.0, mean=None, std=None): elif side == 'both': data = numpy.absolute(data-mean) mean = 0 - return data > (min_deviations + std) + return data > (min_deviations * std) above_noise_arguments = [ Argument('side', type='string', default='both', -- 2.26.2