projects
/
hooke.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74f7155
)
Fix 'min_deviations + std' -> 'min_deviations * std' in hooke.util.peak
author
W. Trevor King
<wking@drexel.edu>
Wed, 2 Jun 2010 05:31:44 +0000
(
01:31
-0400)
committer
W. Trevor King
<wking@drexel.edu>
Wed, 2 Jun 2010 05:31:44 +0000
(
01:31
-0400)
Oops :p.
hooke/util/peak.py
patch
|
blob
|
history
diff --git
a/hooke/util/peak.py
b/hooke/util/peak.py
index 7b90c7d72ccc05e80b11fe948c2199000ce9a3bf..185f04d760e2993a454996b28d45c422c78bfcfa 100644
(file)
--- a/
hooke/util/peak.py
+++ b/
hooke/util/peak.py
@@
-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',