MIC-DKFZ / batchgenerators

A framework for data augmentation for 2D and 3D image classification and segmentation
Apache License 2.0
1.09k stars 221 forks source link

Stop using deprecated scipy.ndimage namespaces #108

Open nicolascedilnik opened 1 year ago

nicolascedilnik commented 1 year ago

With recent versions of scipy, a lot of warnings are raised:

DeprecationWarning: Please use label from the scipy.ndimage namespace, the scipy.ndimage.measurements namespace is deprecated.

DeprecationWarning: Please use grey_dilation from the scipy.ndimage namespace, the scipy.ndimage.morphology namespace is deprecated. from scipy.ndimage.morphology import grey_dilation

Please use gaussian_filter from the scipy.ndimage namespace, the scipy.ndimage.filters namespace is deprecated.

This PR removes them

nicolascedilnik commented 1 year ago

No love for future-proofedness?