Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/scipy/optimize/nonlin.py: 70%

10 statements  

« 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. 

4 

5import warnings 

6from . import _nonlin 

7 

8 

9__all__ = [ # noqa: F822 

10 'Anderson', 

11 'BroydenFirst', 

12 'BroydenSecond', 

13 'DiagBroyden', 

14 'ExcitingMixing', 

15 'GenericBroyden', 

16 'InverseJacobian', 

17 'Jacobian', 

18 'KrylovJacobian', 

19 'LinAlgError', 

20 'LinearMixing', 

21 'LowRankMatrix', 

22 'NoConvergence', 

23 'TerminationCondition', 

24 'anderson', 

25 'asarray', 

26 'asjacobian', 

27 'broyden1', 

28 'broyden2', 

29 'diagbroyden', 

30 'dot', 

31 'excitingmixing', 

32 'get_blas_funcs', 

33 'inspect', 

34 'inv', 

35 'linearmixing', 

36 'maxnorm', 

37 'newton_krylov', 

38 'nonlin_solve', 

39 'norm', 

40 'qr', 

41 'scalar_search_armijo', 

42 'scalar_search_wolfe1', 

43 'scipy', 

44 'solve', 

45 'svd', 

46 'sys', 

47 'vdot', 

48] 

49 

50 

51def __dir__(): 

52 return __all__ 

53 

54 

55def __getattr__(name): 

56 if name not in __all__: 

57 raise AttributeError( 

58 "scipy.optimize.nonlin is deprecated and has no attribute " 

59 f"{name}. Try looking in scipy.optimize instead.") 

60 

61 warnings.warn(f"Please use `{name}` from the `scipy.optimize` namespace, " 

62 "the `scipy.optimize.nonlin` namespace is deprecated.", 

63 category=DeprecationWarning, stacklevel=2) 

64 

65 return getattr(_nonlin, name)