From 44c712e2aab098572a09d9ffe3fed1d540bad1fc Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 19 May 2010 04:42:20 -0400 Subject: [PATCH] array.abs() -> numpy.abolute(array) in hooke.util.peak --- 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 0debbd0..7b90c7d 100644 --- a/hooke/util/peak.py +++ b/hooke/util/peak.py @@ -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): -- 2.26.2