MannLabs / py-lmd

https://mannlabs.github.io/py-lmd/
MIT License
7 stars 1 forks source link

deprecation warning #6

Closed sophiamaedler closed 2 years ago

sophiamaedler commented 2 years ago

When executing code a deprecation warning comes up.

[/Users/sophia/mambaforge/envs/pylmd_new/lib/python3.9/site-packages/skimage/morphology/misc.py:39](): FutureWarning: `selem` is a deprecated argument name for `dilation`. It will be removed in version 1.0.Please use `footprint` instead.
  return func(image, footprint=footprint, *args, **kwargs)
[/Users/sophia/mambaforge/envs/pylmd_new/lib/python3.9/site-packages/skimage/morphology/misc.py:39](): FutureWarning: `selem` is a deprecated argument name for `binary_erosion`. It will be removed in version 1.0.Please use `footprint` instead.
  return func(image, footprint=footprint, *args, **kwargs)

This refers to the lines 967 and 968 in src/lib.py:

def tranform_to_map(self, 
                        dilation = 0,
                        erosion = 0,
                   debug = False):
...
self.offset_map = binary_dilation(self.offset_map , selem=disk(dilation))
self.offset_map = binary_erosion(self.offset_map , selem=disk(erosion))

Should fix this before scikit-image 1.0 is released.