Skip to content

Commit

Permalink
deprecated measurements()
Browse files Browse the repository at this point in the history
  • Loading branch information
haesleinhuepf committed May 8, 2022
1 parent ec2cbd5 commit 0d57f7f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions napari_cupy_image_processing/_cupy_image_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,13 @@ def measurements(intensity_image: napari.types.ImageData,
import cupy
from cupyx.scipy import ndimage

from warnings import warn
warn(
'napari-cupy-image-processing measurements() is deprecated. Consider switching to napari-simpleitk-image-processing label_statistics()',
DeprecationWarning)
print(
'napari-cupy-image-processing measurements() is deprecated. Consider switching to napari-simpleitk-image-processing label_statistics()')

if intensity_image is not None and label_image is not None:

labels = cupy.asarray(label_image)
Expand Down

0 comments on commit 0d57f7f

Please sign in to comment.