Coverage for /usr/lib/python3/dist-packages/scipy/linalg/flinalg.py: 50%

10 statements  

« prev     ^ index     » next       coverage.py v7.4.4, created at 2025-06-14 15:25 +0200

1# This file is not meant for public use and will be removed in SciPy v2.0.0. 

2 

3import warnings 

4from . import _flinalg_py 

5 

6__all__ = ['get_flinalg_funcs', 'has_column_major_storage'] # noqa: F822 

7 

8 

9def __dir__(): 

10 return __all__ 

11 

12 

13def __getattr__(name): 

14 if name not in __all__: 

15 raise AttributeError( 

16 "scipy.linalg.flinalg is deprecated and has no attribute " 

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

18 

19 warnings.warn("The `scipy.linalg.flinalg` namespace is deprecated and " 

20 "will be removed in SciPy v2.0.0.", 

21 category=DeprecationWarning, stacklevel=2) 

22 

23 return getattr(_flinalg_py, name)