[Scipy-svn] r5207 - trunk/scipy/optimize

scipy-svn@scip... scipy-svn@scip...
Sat Nov 29 19:28:23 CST 2008


Author: ptvirtan
Date: 2008-11-29 19:28:12 -0600 (Sat, 29 Nov 2008)
New Revision: 5207

Modified:
   trunk/scipy/optimize/__minpack.h
Log:
Remove a debug printf from __minpack.h.

The printf occurred only when LMDIF returned with error status
"invalid input parameters". What was printed was only input
parameters to optimize.leastsq and the shape of the return value
from user's function -- which the user knows anyway.

Modified: trunk/scipy/optimize/__minpack.h
===================================================================
--- trunk/scipy/optimize/__minpack.h	2008-11-29 13:42:49 UTC (rev 5206)
+++ trunk/scipy/optimize/__minpack.h	2008-11-30 01:28:12 UTC (rev 5207)
@@ -477,10 +477,6 @@
     
   RESTORE_FUNC();
 
-  if (info == 0) {
-    printf("%d %d %d %f %f %f %d %f",n, m, ldfjac, ftol, xtol, gtol, maxfev, factor);
-  }
-
   if (info < 0) goto fail;           /* Python error */
 
   free(wa);



More information about the Scipy-svn mailing list