[Scipy-svn] r2217 - trunk/Lib/stats

scipy-svn at scipy.org scipy-svn at scipy.org
Fri Sep 22 14:48:50 CDT 2006


Author: oliphant
Date: 2006-09-22 14:48:40 -0500 (Fri, 22 Sep 2006)
New Revision: 2217

Modified:
   trunk/Lib/stats/stats.py
Log:
Eliminate spurious lines.

Modified: trunk/Lib/stats/stats.py
===================================================================
--- trunk/Lib/stats/stats.py	2006-09-22 18:44:31 UTC (rev 2216)
+++ trunk/Lib/stats/stats.py	2006-09-22 19:48:40 UTC (rev 2217)
@@ -256,8 +256,6 @@
     Norig = x.shape[axis]
     factor = 1.0-sum(isnan(x),axis)*1.0/Norig
 
-    # XXX: this line is quite clearly wrong
-    n = N-sum(isnan(x),axis)
     putmask(x,isnan(x),0)
     return stats.mean(x,axis)/factor
 
@@ -270,8 +268,6 @@
     n = Norig - sum(isnan(x),axis)*1.0
     factor = n/Norig
 
-    # XXX: this line is quite clearly wrong
-    n = N-sum(isnan(x),axis)
     putmask(x,isnan(x),0)
     m1 = stats.mean(x,axis)
     m1c = m1/factor



More information about the Scipy-svn mailing list