projects
/
hooke.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
217c787
)
array.abs() -> numpy.abolute(array) in hooke.util.peak
author
W. Trevor King
<wking@drexel.edu>
Wed, 19 May 2010 08:42:20 +0000
(
04:42
-0400)
committer
W. Trevor King
<wking@drexel.edu>
Wed, 19 May 2010 08:42:20 +0000
(
04:42
-0400)
hooke/util/peak.py
patch
|
blob
|
history
diff --git
a/hooke/util/peak.py
b/hooke/util/peak.py
index 0debbd0970824a58ba4dde12ea9b1ed03665c529..7b90c7d72ccc05e80b11fe948c2199000ce9a3bf 100644
(file)
--- 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):