mirror of
https://github.com/wassname/scikit-image.git
synced 2026-10-05 13:10:48 +08:00
fix: set random seed in test_noisy_square_image
This commit is contained in:
1 parent
8578158f1d
commit
6d2aad45ab
1 file changed
+1
@@ -31,6 +31,7 @@ def test_square_image():
|
||||
def test_noisy_square_image():
|
||||
im = np.zeros((50, 50)).astype(float)
|
||||
im[:25, :25] = 1.
|
||||
np.random.seed(seed=1234)
|
||||
im = im + np.random.uniform(size=im.shape) * .2
|
||||
|
||||
# Moravec
|
||||
|
||||
Reference in new issue
Block a user