[Scipy-svn] r6557 - branches/0.8.x/scipy/optimize

scipy-svn@scip... scipy-svn@scip...
Mon Jun 21 11:18:02 CDT 2010


Author: oliphant
Date: 2010-06-21 11:18:01 -0500 (Mon, 21 Jun 2010)
New Revision: 6557

Modified:
   branches/0.8.x/scipy/optimize/minpack.py
Log:
Make 0.8.x branch also have consistent fsolve and leastsq interfaces.

Modified: branches/0.8.x/scipy/optimize/minpack.py
===================================================================
--- branches/0.8.x/scipy/optimize/minpack.py	2010-06-21 16:11:54 UTC (rev 6556)
+++ branches/0.8.x/scipy/optimize/minpack.py	2010-06-21 16:18:01 UTC (rev 6557)
@@ -157,9 +157,6 @@
             except KeyError:
                 raise errors['unknown'][1](errors['unknown'][0])
 
-    if n == 1:
-        retval = (retval[0][0],) + retval[1:]
-
     if full_output:
         try:
             return retval + (errors[info][0],)  # Return all + the message



More information about the Scipy-svn mailing list