Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/scipy/optimize/tnc.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 _tnc
9__all__ = [ # noqa: F822
10 'CONSTANT',
11 'FCONVERGED',
12 'INFEASIBLE',
13 'LOCALMINIMUM',
14 'LSFAIL',
15 'MAXFUN',
16 'MSGS',
17 'MSG_ALL',
18 'MSG_EXIT',
19 'MSG_INFO',
20 'MSG_ITER',
21 'MSG_NONE',
22 'MSG_VERS',
23 'MemoizeJac',
24 'NOPROGRESS',
25 'OptimizeResult',
26 'RCSTRINGS',
27 'USERABORT',
28 'XCONVERGED',
29 'array',
30 'asfarray',
31 'fmin_tnc',
32 'inf',
33 'moduleTNC',
34 'old_bound_to_new',
35 'zeros',
36]
39def __dir__():
40 return __all__
43def __getattr__(name):
44 if name not in __all__:
45 raise AttributeError(
46 "scipy.optimize.tnc is deprecated and has no attribute "
47 f"{name}. Try looking in scipy.optimize instead.")
49 warnings.warn(f"Please use `{name}` from the `scipy.optimize` namespace, "
50 "the `scipy.optimize.tnc` namespace is deprecated.",
51 category=DeprecationWarning, stacklevel=2)
53 return getattr(_tnc, name)