[Scipy-tickets] [SciPy] #1111: optimize.curve_fit does not handle None cov_x from optimize.leastsq properly

SciPy Trac scipy-tickets@scipy....
Mon Feb 8 11:13:34 CST 2010


#1111: optimize.curve_fit does not handle None cov_x from optimize.leastsq
properly
--------------------+-------------------------------------------------------
 Reporter:  nilsw   |       Owner:  somebody
     Type:  defect  |      Status:  new     
 Priority:  normal  |   Milestone:  0.8.0   
Component:  Other   |     Version:  0.7.0   
 Keywords:          |  
--------------------+-------------------------------------------------------
 I patched the function as proposed in ##984(if ier not in (1, 2, 3, 4)). A
 few lines under this point you find:

 {{{
             pcov = pcov * s_sq

 }}}

 But pcov may be None, which yields errors when multiplying it with s_sq.

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1111>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list