measurements.py 788 B

123456789101112131415161718192021222324
  1. # This file is not meant for public use and will be removed in SciPy v2.0.0.
  2. # Use the `scipy.ndimage` namespace for importing the functions
  3. # included below.
  4. from scipy._lib.deprecation import _sub_module_deprecation
  5. __all__ = [ # noqa: F822
  6. 'label', 'find_objects', 'labeled_comprehension',
  7. 'sum', 'mean', 'variance', 'standard_deviation',
  8. 'minimum', 'maximum', 'median', 'minimum_position',
  9. 'maximum_position', 'extrema', 'center_of_mass',
  10. 'histogram', 'watershed_ift', 'sum_labels'
  11. ]
  12. def __dir__():
  13. return __all__
  14. def __getattr__(name):
  15. return _sub_module_deprecation(sub_package='ndimage', module='measurements',
  16. private_modules=['_measurements'], all=__all__,
  17. attribute=name)