Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/scipy/interpolate/interpolate.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 _interpolate 

7 

8 

9__all__ = [ # noqa: F822 

10 'BPoly', 

11 'BSpline', 

12 'NdPPoly', 

13 'PPoly', 

14 'RectBivariateSpline', 

15 'RegularGridInterpolator', 

16 'array', 

17 'asarray', 

18 'atleast_1d', 

19 'atleast_2d', 

20 'comb', 

21 'dfitpack', 

22 'interp1d', 

23 'interp2d', 

24 'interpn', 

25 'intp', 

26 'itertools', 

27 'lagrange', 

28 'make_interp_spline', 

29 'poly1d', 

30 'prod', 

31 'ravel', 

32 'searchsorted', 

33 'spec', 

34 'transpose', 

35] 

36 

37 

38def __dir__(): 

39 return __all__ 

40 

41 

42def __getattr__(name): 

43 if name not in __all__: 

44 raise AttributeError( 

45 "scipy.interpolate.interpolate is deprecated and has no attribute " 

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

47 

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

49 "the `scipy.interpolate.interpolate` namespace is deprecated.", 

50 category=DeprecationWarning, stacklevel=2) 

51 

52 return getattr(_interpolate, name)