kdtree.py 636 B

12345678910111213141516171819202122232425
  1. # This file is not meant for public use and will be removed in SciPy v2.0.0.
  2. # Use the `scipy.spatial` namespace for importing the functions
  3. # included below.
  4. from scipy._lib.deprecation import _sub_module_deprecation
  5. __all__ = [ # noqa: F822
  6. 'KDTree',
  7. 'Rectangle',
  8. 'cKDTree',
  9. 'distance_matrix',
  10. 'minkowski_distance',
  11. 'minkowski_distance_p',
  12. ]
  13. def __dir__():
  14. return __all__
  15. def __getattr__(name):
  16. return _sub_module_deprecation(sub_package="spatial", module="kdtree",
  17. private_modules=["_kdtree"], all=__all__,
  18. attribute=name)