Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/scipy/linalg/basic.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.linalg` namespace for importing the functions 

3# included below. 

4 

5import warnings 

6from . import _basic 

7 

8__all__ = [ # noqa: F822 

9 'solve', 'solve_triangular', 'solveh_banded', 'solve_banded', 

10 'solve_toeplitz', 'solve_circulant', 'inv', 'det', 'lstsq', 

11 'pinv', 'pinvh', 'matrix_balance', 'matmul_toeplitz', 

12 'atleast_1d', 'atleast_2d', 'get_flinalg_funcs', 'get_lapack_funcs', 

13 'LinAlgError', 'LinAlgWarning', 'levinson' 

14] 

15 

16 

17def __dir__(): 

18 return __all__ 

19 

20 

21def __getattr__(name): 

22 if name not in __all__: 

23 raise AttributeError( 

24 "scipy.linalg.basic is deprecated and has no attribute " 

25 f"{name}. Try looking in scipy.linalg instead.") 

26 

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

28 "the `scipy.linalg.basic` namespace is deprecated.", 

29 category=DeprecationWarning, stacklevel=2) 

30 

31 return getattr(_basic, name)