using numpy.mean to avoid warnings; still not perfect though
authordevicerandom <devnull@localhost>
Thu, 8 Oct 2009 18:57:56 +0000 (18:57 +0000)
committerdevicerandom <devnull@localhost>
Thu, 8 Oct 2009 18:57:56 +0000 (18:57 +0000)
fit.py

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