[SciPy-User] leastsq and cython

Charles R Harris charlesr.harris@gmail....
Sat Sep 25 16:27:57 CDT 2010


On Sat, Sep 25, 2010 at 3:03 PM, David Baddeley <david_baddeley@yahoo.com.au
> wrote:

> I've,  run into a similar problem, it's due to the fact that native methods
> (ie
> ones loaded from c libraries) are not quite the same as pure python
> function
> objects & don't possess all the nice attributes. It's been a while, but I
> seem
> to remember that this error crops up when leastsq is trying to print some
> form
> of status message with the function name in it. I've circumvented the
> problem by
> making a thin python wrapper function which just calls my c method. This
> works,
> but is not ideal, as you introduce additional function call overhead. If
> anyone
> out there knows of a better solution I'd also be interested.
>
>
Maybe it shouldn't try to print the function name? The context of the
message might be enough.

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20100925/979020f4/attachment.html 


More information about the SciPy-User mailing list