lsoda.py 610 B

12345678910111213141516171819202122232425
  1. # This file is not meant for public use and will be removed in SciPy v2.0.0.
  2. import warnings
  3. from . import _lsoda # type: ignore
  4. __all__ = ['lsoda'] # noqa: F822
  5. def __dir__():
  6. return __all__
  7. def __getattr__(name):
  8. if name not in __all__:
  9. raise AttributeError(
  10. "scipy.integrate.lsoda is deprecated and has no attribute "
  11. f"{name}.")
  12. warnings.warn("The `scipy.integrate.lsoda` namespace is deprecated "
  13. "and will be removed in SciPy v2.0.0.",
  14. category=DeprecationWarning, stacklevel=2)
  15. return getattr(_lsoda, name)