| 123456789101112131415161718192021222324252627 |
- # This file is not meant for public use and will be removed in SciPy v2.0.0.
- # Use the `scipy.odr` namespace for importing the functions
- # included below.
- __all__ = [ # noqa: F822
- 'Model', 'exponential', 'multilinear', 'unilinear',
- 'quadratic', 'polynomial'
- ]
- def __dir__():
- return __all__
- def __getattr__(name):
- msg = ("`scipy.odr` is deprecated as of version 1.17.0 and will be removed in "
- "SciPy 1.19.0. Please use `https://pypi.org/project/odrpack/` instead.")
- if name not in __all__:
- raise AttributeError(
- f"`scipy.odr.models` has no attribute {name}. In addition, {msg}")
- import warnings
- from . import _models
- warnings.warn(msg, category=DeprecationWarning, stacklevel=2)
- return getattr(_models, name)
|