Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scipy deprecations #114

Closed
raamana opened this issue Mar 23, 2023 · 1 comment
Closed

scipy deprecations #114

raamana opened this issue Mar 23, 2023 · 1 comment

Comments

@raamana
Copy link
Contributor

raamana commented Mar 23, 2023

thanks for sharing and maintaining medpy. Just wanted to share these deprecation warnings, that you might want to fix, they seem easy and straightforward:

../../../../../../usr/local/lib/python3.11/site-packages/medpy/metric/binary.py:26
  /usr/local/lib/python3.11/site-packages/medpy/metric/binary.py:26: DeprecationWarning:

  Please use `distance_transform_edt` from the `scipy.ndimage` namespace, the `scipy.ndimage.morphology` namespace is deprecated.

../../../../../../usr/local/lib/python3.11/site-packages/medpy/metric/binary.py:26
  /usr/local/lib/python3.11/site-packages/medpy/metric/binary.py:26: DeprecationWarning:

  Please use `binary_erosion` from the `scipy.ndimage` namespace, the `scipy.ndimage.morphology` namespace is deprecated.

../../../../../../usr/local/lib/python3.11/site-packages/medpy/metric/binary.py:26
  /usr/local/lib/python3.11/site-packages/medpy/metric/binary.py:26: DeprecationWarning:

  Please use `generate_binary_structure` from the `scipy.ndimage` namespace, the `scipy.ndimage.morphology` namespace is deprecated.

../../../../../../usr/local/lib/python3.11/site-packages/medpy/metric/binary.py:28
  /usr/local/lib/python3.11/site-packages/medpy/metric/binary.py:28: DeprecationWarning:

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

../../../../../../usr/local/lib/python3.11/site-packages/medpy/metric/binary.py:28
  /usr/local/lib/python3.11/site-packages/medpy/metric/binary.py:28: DeprecationWarning:

  Please use `find_objects` from the `scipy.ndimage` namespace, the `scipy.ndimage.measurements` namespace is deprecated.

../../../../../../usr/local/lib/python3.11/site-packages/medpy/metric/histogram.py:126: 7381 warnings
graynet/tests/test_volumetric_graynet.py: 16798 warnings
  /usr/local/lib/python3.11/site-packages/medpy/metric/histogram.py:126: DeprecationWarning:

  scipy.absolute is deprecated and will be removed in SciPy 2.0.0, use numpy.absolute instead

../../../../../../usr/local/lib/python3.11/site-packages/medpy/metric/histogram.py:126: 7381 warnings
graynet/tests/test_volumetric_graynet.py: 16798 warnings
  /usr/local/lib/python3.11/site-packages/medpy/metric/histogram.py:126: DeprecationWarning:

  scipy.sum is deprecated and will be removed in SciPy 2.0.0, use numpy.sum instead
@oskar-maier-ms
Copy link
Contributor

Thank you for noticing! This has actually been solved will #112 , but I haven't got around to create a new release yet.

For now, feel free to use the main branch version.

@loli loli closed this as completed Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants