Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.9/dist-packages/scipy/sparse/base.py: 83%

6 statements  

« prev     ^ index     » next       coverage.py v7.4.1, created at 2024-02-14 06:37 +0000

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

2# Use the `scipy.sparse` namespace for importing the functions 

3# included below. 

4 

5from scipy._lib.deprecation import _sub_module_deprecation 

6 

7 

8__all__ = [ # noqa: F822 

9 'MAXPRINT', 

10 'SparseEfficiencyWarning', 

11 'SparseFormatWarning', 

12 'SparseWarning', 

13 'asmatrix', 

14 'check_reshape_kwargs', 

15 'check_shape', 

16 'get_sum_dtype', 

17 'isdense', 

18 'isscalarlike', 

19 'issparse', 

20 'isspmatrix', 

21 'spmatrix', 

22 'validateaxis', 

23] 

24 

25 

26def __dir__(): 

27 return __all__ 

28 

29 

30def __getattr__(name): 

31 return _sub_module_deprecation(sub_package="sparse", module="base", 

32 private_modules=["_base"], all=__all__, 

33 attribute=name)