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

3# included below. 

4 

5import warnings 

6from . import _specfun # type: ignore 

7 

8__all__ = [ # noqa: F822 

9 'airyzo', 

10 'bernob', 

11 'cerzo', 

12 'clpmn', 

13 'clpn', 

14 'clqmn', 

15 'clqn', 

16 'cpbdn', 

17 'cyzo', 

18 'eulerb', 

19 'fcoef', 

20 'fcszo', 

21 'jdzo', 

22 'jyzo', 

23 'klvnzo', 

24 'lamn', 

25 'lamv', 

26 'lpmn', 

27 'lpn', 

28 'lqmn', 

29 'lqnb', 

30 'pbdv', 

31 'rctj', 

32 'rcty', 

33 'segv' 

34] 

35 

36 

37def __dir__(): 

38 return __all__ 

39 

40 

41def __getattr__(name): 

42 if name not in __all__: 

43 raise AttributeError( 

44 "scipy.special.specfun is deprecated and has no attribute " 

45 f"{name}. Try looking in scipy.special instead.") 

46 

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

48 "the `scipy.special.specfun` namespace is deprecated.", 

49 category=DeprecationWarning, stacklevel=2) 

50 

51 return getattr(_specfun, name)