[SciPy-User] Passing keyword argment to functions in odeint

Daniel Penalva dkajah@gmail....
Wed Jun 26 15:31:44 CDT 2013


thank you for your answers :-D


On Wed, Jun 26, 2013 at 5:31 PM, Daniel Penalva <dkajah@gmail.com> wrote:

> Yah, you are right, i've done that but it not work. Sorry for my late
> example, a more apropriated one is:
>
> func(x, t, K = False, boundary = 'free', mimese = False);
>
> and than :
>
> odeint(func, x, t, ( K, mimese));
>
> but it will not work as expected. It means that, in odeint, i cant ignore
> some of keyword argument as in a usual function evaluation. Should this be
> tagged as a bug ?
>
>
>
>
> On Wed, Jun 26, 2013 at 7:47 AM, Juan Luis Cano <juanlu001@gmail.com>wrote:
>
>> On 06/26/2013 05:19 AM, Daniel Penalva wrote:
>> > Is it possible to pass keyword arguments to functions like
>> >
>> > func(x, t, K = False),
>> >
>> > while using odeint to integrate ?
>> >
>> > i have tried usual way  odeint(func, x, t, (K) ), but it did not work.
>>
>> Probably because you have to pass them as a tuple
>>
>> (K,)
>>
>> Juanlu
>> _______________________________________________
>> SciPy-User mailing list
>> SciPy-User@scipy.org
>> http://mail.scipy.org/mailman/listinfo/scipy-user
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20130626/1e3bda0b/attachment.html 


More information about the SciPy-User mailing list