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

6 statements  

« prev     ^ index     » next       coverage.py v7.4.4, created at 2024-03-22 06:44 +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 'check_shape', 

10 'dia_matrix', 

11 'dia_matvec', 

12 'get_sum_dtype', 

13 'getdtype', 

14 'isshape', 

15 'isspmatrix_dia', 

16 'spmatrix', 

17 'upcast_char', 

18 'validateaxis', 

19] 

20 

21 

22def __dir__(): 

23 return __all__ 

24 

25 

26def __getattr__(name): 

27 return _sub_module_deprecation(sub_package="sparse", module="dia", 

28 private_modules=["_dia"], all=__all__, 

29 attribute=name)