mirror of
https://github.com/wassname/scikit-image.git
synced 2026-09-09 11:33:41 +08:00
Merge pull request #419 from JDWarner/fix_noisy_square_seed
fix: set random seed in `test_noisy_square_image`
This commit is contained in:
@@ -31,6 +31,7 @@ def test_square_image():
|
|||||||
def test_noisy_square_image():
|
def test_noisy_square_image():
|
||||||
im = np.zeros((50, 50)).astype(float)
|
im = np.zeros((50, 50)).astype(float)
|
||||||
im[:25, :25] = 1.
|
im[:25, :25] = 1.
|
||||||
|
np.random.seed(seed=1234)
|
||||||
im = im + np.random.uniform(size=im.shape) * .2
|
im = im + np.random.uniform(size=im.shape) * .2
|
||||||
|
|
||||||
# Moravec
|
# Moravec
|
||||||
|
|||||||
Reference in New Issue
Block a user