[SciPy-user] help importing integrate
Mon Jun 11 13:09:19 CDT 2007
I'm confused. In my code I start with this:
import scipy as S
later on, I call odeint like so:
Y = S.integrate.odeint(args)
Yet, this doesn't seem to work (raising an AttributeError), and I can't
figure out why. It will work if I add:
from scipy import integrate
and call odeint like so:
Y = integrate.odeint(args)
but without that extra import line, I get an attribute error saying
'module' object has no attribute 'integrate'. It would seem I am
misunderstanding some aspect of scipy's structure or something even more
basic. Any help or clarification is appreciated.
Postdoctoral Research Assoc.
Department of Physics
University of Ilinois
1110 W. Green St.
Urbana, IL 61801
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SciPy-user