[Scipy-svn] r4460 - in trunk: . scipy/stats/models/robust

scipy-svn@scip... scipy-svn@scip...
Sun Jun 22 11:25:42 CDT 2008


Author: cdavid
Date: 2008-06-22 11:25:32 -0500 (Sun, 22 Jun 2008)
New Revision: 4460

Modified:
   trunk/INSTALL.txt
   trunk/scipy/stats/models/robust/scale.py
Log:
Add a note on CFLAGS and co.

Modified: trunk/INSTALL.txt
===================================================================
--- trunk/INSTALL.txt	2008-06-22 15:45:05 UTC (rev 4459)
+++ trunk/INSTALL.txt	2008-06-22 16:25:32 UTC (rev 4460)
@@ -178,6 +178,11 @@
 
    It is not necessary to install blas or lapack libraries in addition.
 
+ 4) Compiler flags customization (FFLAGS, CFLAGS, etc...). If you customize
+ CFLAGS and other related flags from the command line or the shell environment,
+ beware that is does not have the standard behavior of appending options.
+ Instead, it overrides the options. As such, you have to give all options in the
+ flag for the build to be successful.
 
 GETTING SCIPY
 =============

Modified: trunk/scipy/stats/models/robust/scale.py
===================================================================
--- trunk/scipy/stats/models/robust/scale.py	2008-06-22 15:45:05 UTC (rev 4459)
+++ trunk/scipy/stats/models/robust/scale.py	2008-06-22 16:25:32 UTC (rev 4460)
@@ -99,6 +99,7 @@
             mu = self.mu
         self.axis = unsqueeze(mu, self.axis, self.a.shape)
 
+        print subset * (a - mu)**2
         scale = N.sum(subset * (a - mu)**2, axis=self.axis) / (self.n * Huber.gamma - N.sum(1. - subset, axis=self.axis) * Huber.c**2)
 
         self.iter += 1



More information about the Scipy-svn mailing list