[SciPy-User] leastsq and cython
Charles R Harris
Sat Sep 25 16:27:57 CDT 2010
On Sat, Sep 25, 2010 at 3:03 PM, David Baddeley <firstname.lastname@example.org
> I've, run into a similar problem, it's due to the fact that native methods
> ones loaded from c libraries) are not quite the same as pure python
> objects & don't possess all the nice attributes. It's been a while, but I
> to remember that this error crops up when leastsq is trying to print some
> 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
> but is not ideal, as you introduce additional function call overhead. If
> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SciPy-User