projects
/
hooke.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4196ea
)
using numpy.mean to avoid warnings; still not perfect though
author
devicerandom
<devnull@localhost>
Thu, 8 Oct 2009 18:57:56 +0000
(18:57 +0000)
committer
devicerandom
<devnull@localhost>
Thu, 8 Oct 2009 18:57:56 +0000
(18:57 +0000)
fit.py
patch
|
blob
|
history
diff --git
a/fit.py
b/fit.py
index 10d0331333aebf8ab2856f8d4462adf86b0b993d..a39f0ae7d4805fa04f4ed723771c61a18115f0a4 100755
(executable)
--- a/
fit.py
+++ b/
fit.py
@@
-326,7
+326,7
@@
class fitCommands:
finalength=len(xret)
while monster:
monchunk=scipy.array(ydiff[monlength:finalength])
- if abs(
scipy.stats
.std(monchunk)) < 2e-10:
+ if abs(
np
.std(monchunk)) < 2e-10:
monster=False
else: #move away from the monster
monlength-=int(len(xret)/50)
@@
-350,7
+350,7
@@
class fitCommands:
ok=True
- ymean=
scipy
.mean(ychunk) #baseline
+ ymean=
np
.mean(ychunk) #baseline
index=0
point = ymean+1