I wanted to use odeint scipy with function
def func(y,t,a=123,b=456)
then use it like
odeint(func,y0,t)
If I want to change the values โโof a and b using args
odeint(func,y0,t,args=(a=1,b=2))
He complains that arguments are not tuples. This can be a very elementary question, how do I pass the keyword arguments into a tuple?
odeint(func,y0,t,args=...?)
source
share