[SciPy-dev] scipy.optimize.nonlin rewrite

Gideon Simpson simpson@math.toronto....
Mon Dec 1 11:39:18 CST 2008


That's a neat trick.  Is that innate to python or a part of scipy?
-gideon

On Nov 30, 2008, at 9:59 PM, Anne Archibald wrote:

> 2008/11/30 Gideon Simpson <simpson@math.toronto.edu>:
>> Still no args input for inputting arguments to the function F?
>>
>> Sorry to complain, but the absence of this has put me off using these
>> routines as it would require a rewrite of much of my code.
>
> Why?
>
> Instead of
> optimize.whatever(F, args=extra)
> just use
> optimize.whatever(lambda x: F(x,extra))
>
>
> Anne
> _______________________________________________
> Scipy-dev mailing list
> Scipy-dev@scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-dev



More information about the Scipy-dev mailing list