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

scipy-svn@scip... scipy-svn@scip...
Fri Jun 18 23:18:21 CDT 2010


Author: rgommers
Date: 2010-06-18 23:18:20 -0500 (Fri, 18 Jun 2010)
New Revision: 6543

Modified:
   branches/0.8.x/scipy/optimize/minpack.py
Log:
BUG: leastsq returned a scalar instead of array for single fit param. Fixes #1204.

Backport of r6542.

Modified: branches/0.8.x/scipy/optimize/minpack.py
===================================================================
--- branches/0.8.x/scipy/optimize/minpack.py	2010-06-18 19:39:18 UTC (rev 6542)
+++ branches/0.8.x/scipy/optimize/minpack.py	2010-06-19 04:18:20 UTC (rev 6543)
@@ -319,9 +319,6 @@
             except KeyError:
                 raise errors['unknown'][1](errors['unknown'][0])
 
-    if n == 1:
-        retval = (retval[0][0],) + retval[1:]
-
     mesg = errors[info][0]
     if full_output:
         cov_x = None



More information about the Scipy-svn mailing list