vode.py 625 B

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