Fix 'min_deviations + std' -> 'min_deviations * std' in hooke.util.peak
authorW. Trevor King <wking@drexel.edu>
Wed, 2 Jun 2010 05:31:44 +0000 (01:31 -0400)
committerW. Trevor King <wking@drexel.edu>
Wed, 2 Jun 2010 05:31:44 +0000 (01:31 -0400)
Oops :p.

hooke/util/peak.py

index 7b90c7d72ccc05e80b11fe948c2199000ce9a3bf..185f04d760e2993a454996b28d45c422c78bfcfa 100644 (file)
@@ -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',