From c56ad1d8551e2cb2fe5a718d1e2060bbc40b42f7 Mon Sep 17 00:00:00 2001 From: devicerandom Date: Thu, 8 Oct 2009 18:57:56 +0000 Subject: [PATCH] using numpy.mean to avoid warnings; still not perfect though --- fit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fit.py b/fit.py index 10d0331..a39f0ae 100755 --- 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 -- 2.26.2