Upgrading scikit-image 0.22 to 0.23
Breaking0.22.0 → 0.23.2Breaking3Platform1Deprecated4New6Changed9Fixed7Other80
BreakingUpgrade verdict
3 breaking changes and a platform requirement change.
In plain terms
- skeletonize_3d now always outputs a binary image, even for non-binary input.
- Completes deprecations scheduled for 0.23 and removes unused deprecate_kwarg and remove_arg, succeeded by deprecate_parameter.
- A helper function that checked the Python version has been removed.
- Python 3.9 is no longer supported; use Python 3.10 or newer.
Must act Top 5 of 8 that need code or config changes
Python requirement changed in 0.23.0rc0: >=3.9 → >=3.10.
What you must change
Breaking3
Removes unexpected value scaling in skimage.morphology.skeletonize_3d for non-binary input; it now always returns a binary array.
skimage.morphology.skeletonize_3dCompletes deprecations scheduled for 0.23 and removes unused deprecate_kwarg and remove_arg, succeeded by deprecate_parameter.
deprecate_kwargremove_argdeprecate_parameterRemoves the
ensure_python_version function.ensure_python_versionPlatform1
Drops support for Python 3.9.
Deprecations to plan for
Deprecated4
Deprecates shift_x and shift_y parameters in skimage.morphology.erosion and skimage.morphology.dilation.
shift_xshift_yskimage.morphology.erosionskimage.morphology.dilationpad_footprintDeprecates skimage.feature.plot_matches in favor of skimage.feature.plot_matched_features.
skimage.feature.plot_matchesskimage.feature.plot_matched_featuresDeprecates skimage.morphology.skeletonize_3d in favor of skimage.morphology.skeletonize.
skimage.morphology.skeletonize_3dskimage.morphology.skeletonizeDeprecates the output parameter in skimage.filters.gaussian; use out instead.
skimage.filters.gaussianoutputoutAPI changes
Generated by DepDelta from published Python source. Not mixed with prose notes.
- removed:
function get_xyz_coords(illuminant, observer, dtype=…)
- removed:
function pytest_runtest_setup(item) - removed:
function pytest_runtest_teardown(item)
- added:
function plot_matched_features(image0, image1, *, keypoints0, keypoints1, matches, ax, keypoints_color=…, matches_color=…, only_matches=…, alignment=…)
- removed:
export skeletonize_3d - added:
export mirror_footprint - added:
export pad_footprint
- changed:
function binary_closing(image, footprint=…, out=…) → function binary_closing(image, footprint=…, out=…, *, mode=…) - changed:
function binary_dilation(image, footprint=…, out=…) → function binary_dilation(image, footprint=…, out=…, *, mode=…) - changed:
function binary_erosion(image, footprint=…, out=…) → function binary_erosion(image, footprint=…, out=…, *, mode=…) - changed:
function binary_opening(image, footprint=…, out=…) → function binary_opening(image, footprint=…, out=…, *, mode=…)
- added:
function mirror_footprint(footprint) - added:
function pad_footprint(footprint, *, pad_end=…)
- changed:
function black_tophat(image, footprint=…, out=…) → function black_tophat(image, footprint=…, out=…, *, mode=…, cval=…) - changed:
function closing(image, footprint=…, out=…) → function closing(image, footprint=…, out=…, *, mode=…, cval=…) - changed:
function dilation(image, footprint=…, out=…, shift_x=…, shift_y=…) → function dilation(image, footprint=…, out=…, shift_x=…, shift_y=…, *, mode=…, cval=…) - changed:
function erosion(image, footprint=…, out=…, shift_x=…, shift_y=…) → function erosion(image, footprint=…, out=…, shift_x=…, shift_y=…, *, mode=…, cval=…) - changed:
function opening(image, footprint=…, out=…) → function opening(image, footprint=…, out=…, *, mode=…, cval=…) - changed:
function white_tophat(image, footprint=…, out=…) → function white_tophat(image, footprint=…, out=…, *, mode=…, cval=…)
- added:
export lookfor