interpolate.py 754 B

123456789101112131415161718192021222324252627282930
  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. from scipy._lib.deprecation import _sub_module_deprecation
  5. __all__ = [ # noqa: F822
  6. 'BPoly',
  7. 'BSpline',
  8. 'NdPPoly',
  9. 'PPoly',
  10. 'RectBivariateSpline',
  11. 'RegularGridInterpolator',
  12. 'interp1d',
  13. 'interp2d',
  14. 'interpn',
  15. 'lagrange',
  16. 'make_interp_spline',
  17. ]
  18. def __dir__():
  19. return __all__
  20. def __getattr__(name):
  21. return _sub_module_deprecation(sub_package="interpolate", module="interpolate",
  22. private_modules=["_interpolate", "fitpack2", "_rgi"],
  23. all=__all__, attribute=name)