Skip to content

Upgrading scikit-image 0.25 to 0.26

Breaking0.25.2 → 0.26.0Breaking3Platform1Deprecated13New7Changed5Fixed7Other99

BreakingUpgrade verdict

3 breaking changes and a platform requirement change.

  • Options for shifting that were already deprecated are gone; code using them must switch to the replacement.
  • An old option that was already marked deprecated has been removed, so code still passing it will fail.
  • You must now pass transform constructor arguments by name rather than by position.
  • This version no longer works on Python 3.10; you need a newer Python.
Top 5 of 16 that need code or config changes

Python requirement changed in 0.26.0rc0: >=3.10 → >=3.11.

Breaking3
Removes deprecated shift parameters.
Removes the deprecated image2 parameter.
image2
Makes all input parameters to skimage.transform transform constructors keyword-only except matrix.
skimage.transformmatrix
Platform1
Drops Python 3.10 support.
Deprecated12
Deprecates binary_erosion, binary_dilation, binary_opening, and binary_closing in favor of their non-binary counterparts.
skimage.morphology.binary_erosionskimage.morphology.binary_dilationskimage.morphology.binary_openingskimage.morphology.binary_closingskimage.morphology.erosionskimage.morphology.dilationskimage.morphology.openingskimage.morphology.closing
Deprecates the max_cost parameter in skimage.graph.MCP.find_costs, which previously did nothing; use max_step_cost instead.
skimage.graph.MCP.find_costsmax_costmax_step_cost
Deprecates the max_cumulative_cost parameter in skimage.graph.MCP.find_costs, which did nothing.
skimage.graph.MCP.find_costsmax_cumulative_cost
Deprecates min_size in skimage.morphology.remove_small_objects in favor of max_size, which removes objects smaller than or equal to its value.
skimage.morphology.remove_small_objectsmin_sizemax_size
Deprecates area_threshold in skimage.morphology.remove_small_holes in favor of max_size, which removes holes smaller than or equal to its value.
skimage.morphology.remove_small_holesarea_thresholdmax_size
Deprecates scalar scale with dimensionality=3 in skimage.transform geometric transform constructors.
skimage.transformscaledimensionality
Deprecates num_threads in skimage.restoration.rolling_ball; use workers instead.
skimage.restoration.rolling_ballnum_threadsworkers
Deprecates num_workers in skimage.restoration.cycle_spin; use workers instead.
skimage.restoration.cycle_spinnum_workersworkers
Officially deprecates old properties in skimage.measure.regionprops and related functions, which now emit warnings when accessed.
skimage.measure.regionprops
Deprecates skimage.measure.fit.BaseModel.
skimage.measure.fit.BaseModel
Deprecates .params attributes of CircleModel, EllipseModel, and LineModelND in favor of model-specific attributes.
skimage.measure.CircleModelskimage.measure.EllipseModelskimage.measure.LineModelNDparamsorigindirectioncenterradius
Deprecates params arguments to predict* calls of CircleModel, EllipseModel, and LineModelND in skimage.measure.
skimage.measureCircleModelEllipseModelLineModelNDpredict_x

Generated by DepDelta from published Python source. Not mixed with prose notes.

  • removed: variable collect_ignore
  • added: export RansacModelProtocol
  • removed: constructor BaseModel()
  • changed: class CircleModel(BaseModel) → class CircleModel(_BaseModel)
  • changed: class EllipseModel(BaseModel) → class EllipseModel(_BaseModel)
  • changed: class LineModelND(BaseModel) → class LineModelND(_BaseModel)
  • added: class RansacModelProtocol(Protocol)
  • added: function add_from_estimate(cls)
  • added: method RansacModelProtocol.residuals(*data)
  • added: property CircleModel.params
  • added: property EllipseModel.params
  • added: property LineModelND.params
  • added: static method CircleModel.from_estimate(data)
  • added: static method EllipseModel.from_estimate(data)
  • added: static method LineModelND.from_estimate(data)
  • added: static method RansacModelProtocol.from_estimate(*data)
  • removed: export binary_closing
  • removed: export binary_dilation
  • removed: export binary_erosion
  • removed: export binary_opening
  • changed: function dilation(image, footprint=…, out=…, shift_x=…, shift_y=…, *, mode=…, cval=…) → function dilation(image, footprint=…, out=…, *, mode=…, cval=…)
  • changed: function erosion(image, footprint=…, out=…, shift_x=…, shift_y=…, *, mode=…, cval=…) → function erosion(image, footprint=…, out=…, *, mode=…, cval=…)
  • changed: function remove_small_holes(ar, area_threshold=…, connectivity=…, *, out=…) → function remove_small_holes(ar, area_threshold=…, connectivity=…, *, max_size=…, out=…)
  • changed: function remove_small_objects(ar, min_size=…, connectivity=…, *, out=…) → function remove_small_objects(ar, min_size=…, connectivity=…, *, max_size=…, out=…)
  • added: class PendingSkimage2Change(PendingDeprecationWarning)
  • added: export FailedEstimationAccessError