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

3# included below. 

4 

5import warnings 

6from . import _fitpack_py 

7 

8 

9__all__ = [ # noqa: F822 

10 'BSpline', 

11 'bisplev', 

12 'bisplrep', 

13 'dblint', 

14 'insert', 

15 'spalde', 

16 'splantider', 

17 'splder', 

18 'splev', 

19 'splint', 

20 'splprep', 

21 'splrep', 

22 'sproot', 

23] 

24 

25 

26def __dir__(): 

27 return __all__ 

28 

29 

30def __getattr__(name): 

31 if name not in __all__: 

32 raise AttributeError( 

33 "scipy.interpolate.fitpack is deprecated and has no attribute " 

34 f"{name}. Try looking in scipy.interpolate instead.") 

35 

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

37 "the `scipy.interpolate.fitpack` namespace is deprecated.", 

38 category=DeprecationWarning, stacklevel=2) 

39 

40 return getattr(_fitpack_py, name)