[SciPy-User] leastsq returns bizarre, not fitted, output for float values

Charles R Harris charlesr.harris@gmail....
Thu Jun 10 09:10:48 CDT 2010


On Thu, Jun 10, 2010 at 8:02 AM, Matthieu Rigal <rigal@rapideye.de> wrote:

> OK, I've found the bug...
>
> Somehow the leastsq function is not working if both data sets are float 32
> type.
> By just adding following line the problem is solved :
> aX = numpy.asarray(aX, dtype=numpy.float64)
>
> Is it a known bug ? Should I add it to the bug tracker ?
>
> Best regards,
> Matthieu
>
>
I think you should open a ticket and include a simple example.

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20100610/e8ebd18a/attachment-0001.html 


More information about the SciPy-User mailing list