From: W. Trevor King Date: Wed, 19 May 2010 08:42:20 +0000 (-0400) Subject: array.abs() -> numpy.abolute(array) in hooke.util.peak X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=44c712e2aab098572a09d9ffe3fed1d540bad1fc;p=hooke.git array.abs() -> numpy.abolute(array) in hooke.util.peak --- 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):