Skip to content

Upgrading scikit-image 0.20 to 0.21

Breaking0.20.0 → 0.21.0Breaking7Platform1New6Changed15Fixed24Other81

BreakingUpgrade verdict

7 breaking changes and a platform requirement change.

  • Algorithms that use random numbers now take one rng argument instead of several differently named seed arguments.
  • Unifies the API on a seed keyword for random seeds and generators.
  • Makes join_segmentations return array maps from output to input labels.
  • Unifies the pseudo-random seeding interface.
Top 4 of 8 that need code or config changes
Breaking7
Replaces the sample_seed, seed, random_seed and random_state keyword arguments with a single rng argument.
sample_seedseedrandom_seedrandom_staterng
Unifies the API on a seed keyword for random seeds and generators.
Makes join_segmentations return array maps from output to input labels.
join_segmentations
Unifies the pseudo-random seeding interface.
Changes the geometric transform inverse to a property.
Makes image_fetcher and create_image_fetcher in data private.
image_fetchercreate_image_fetcherdata
Disallows 64-bit integer inputs and adds a test to ensure masked and unmasked modes are aligned.
Platform1
This is the last release to support Python 3.8.