From: devicerandom Date: Thu, 8 Oct 2009 18:57:56 +0000 (+0000) Subject: using numpy.mean to avoid warnings; still not perfect though X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c56ad1d8551e2cb2fe5a718d1e2060bbc40b42f7;p=hooke.git using numpy.mean to avoid warnings; still not perfect though --- 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