Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/scipy/optimize/zeros.py: 70%
10 statements
« prev ^ index » next coverage.py v7.3.2, created at 2023-12-12 06:31 +0000
« prev ^ index » next coverage.py v7.3.2, created at 2023-12-12 06:31 +0000
1# This file is not meant for public use and will be removed in SciPy v2.0.0.
2# Use the `scipy.optimize` namespace for importing the functions
3# included below.
5import warnings
6from . import _zeros_py
9__all__ = [ # noqa: F822
10 'CONVERGED',
11 'CONVERR',
12 'INPROGRESS',
13 'RootResults',
14 'SIGNERR',
15 'TOMS748Solver',
16 'VALUEERR',
17 'bisect',
18 'brenth',
19 'brentq',
20 'flag_map',
21 'namedtuple',
22 'newton',
23 'operator',
24 'results_c',
25 'ridder',
26 'toms748',
27]
30def __dir__():
31 return __all__
34def __getattr__(name):
35 if name not in __all__:
36 raise AttributeError(
37 "scipy.optimize.zeros is deprecated and has no attribute "
38 f"{name}. Try looking in scipy.optimize instead.")
40 warnings.warn(f"Please use `{name}` from the `scipy.optimize` namespace, "
41 "the `scipy.optimize.zeros` namespace is deprecated.",
42 category=DeprecationWarning, stacklevel=2)
44 return getattr(_zeros_py, name)