Skip to content

Commit 80641d1

Browse files
committed
Fix binary_blobs seed arg for newer skimage
1 parent c661b68 commit 80641d1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/test_connected_components.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,8 @@ def test_stats_match_cv2_text(self):
360360

361361
def test_stats_match_cv2_binary_blobs(self):
362362
"""Test on binary blobs image."""
363-
image = skimage_data.binary_blobs(length=128, seed=42)
363+
rng = np.random.default_rng(42)
364+
image = skimage_data.binary_blobs(length=128, rng=rng)
364365
mask = image.astype(np.uint8)
365366
self._compare_with_cv2(mask, connectivity=4)
366367
self._compare_with_cv2(mask, connectivity=8)

0 commit comments

Comments
 (0)