We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c661b68 commit 80641d1Copy full SHA for 80641d1
1 file changed
tests/test_connected_components.py
@@ -360,7 +360,8 @@ def test_stats_match_cv2_text(self):
360
361
def test_stats_match_cv2_binary_blobs(self):
362
"""Test on binary blobs image."""
363
- image = skimage_data.binary_blobs(length=128, seed=42)
+ rng = np.random.default_rng(42)
364
+ image = skimage_data.binary_blobs(length=128, rng=rng)
365
mask = image.astype(np.uint8)
366
self._compare_with_cv2(mask, connectivity=4)
367
self._compare_with_cv2(mask, connectivity=8)
0 commit comments