[SciPy-dev] integrate.ode: dop, zvode accessibility

josef.pktd@gmai... josef.pktd@gmai...
Sat Apr 11 13:52:50 CDT 2009


On Sat, Apr 11, 2009 at 2:28 PM,  <josef.pktd@gmail.com> wrote:
> I was looking at the import structure in integrate.
>
> in integrate __init__ there is   `from ode import *`
> since ode has a class ode, the module ode is shadowed and not
> available for access anymore
>
> So, it seems that there is now way to access zvode and dopri5 and dop853
> unless I am mistaken. integrate.dop refers to the fortran library
>
>>>> dir(integrate.dop)
> ['__doc__', '__file__', '__name__', '__version__', 'dop853', 'dopri5']
>>>> integrate.dop.dop853
> <fortran object at 0x01B3B8A8>
>
> (In general, I don't like modules and classes or functions that have
> the same names when combined with, from ... import *, since it
> prevents direct module access of the shadowed module.)
>
> Josef
>

to clarify:
They are accessible as integrators in ode and complex_ode but not
directly. So the question is whether they are hidden away
intentionally.

Josef


More information about the Scipy-dev mailing list