array.abs() -> numpy.abolute(array) in hooke.util.peak
authorW. Trevor King <wking@drexel.edu>
Wed, 19 May 2010 08:42:20 +0000 (04:42 -0400)
committerW. Trevor King <wking@drexel.edu>
Wed, 19 May 2010 08:42:20 +0000 (04:42 -0400)
hooke/util/peak.py

index 0debbd0970824a58ba4dde12ea9b1ed03665c529..7b90c7d72ccc05e80b11fe948c2199000ce9a3bf 100644 (file)
@@ -246,7 +246,7 @@ def noise(data, cut_side='both', stable=0.005, max_cut=0.2):
 
     if cut_side == 'both':
         def new_mask(data, mask, masked_mean):
-            mask[((data-masked_mean).abs()*mask).argmax()] = 0
+            mask[(numpy.absolute(data-masked_mean)*mask).argmax()] = 0
             return mask
     elif cut_side == 'positive':
         def new_mask(data, mask, masked_mean):