mirror of
https://github.com/wassname/scikit-image.git
synced 2026-08-12 12:30:16 +08:00
Add random seeds to tests per #1044
This commit is contained in:
@@ -5,6 +5,7 @@ from skimage.transform import integral_image, integrate
|
||||
|
||||
x = (np.random.random((50, 50)) * 255).astype(np.uint8)
|
||||
s = integral_image(x)
|
||||
np.random.seed(0)
|
||||
|
||||
|
||||
def test_validity():
|
||||
|
||||
@@ -12,6 +12,9 @@ from skimage import transform as tf, data, img_as_float
|
||||
from skimage.color import rgb2gray
|
||||
|
||||
|
||||
np.random.seed(0)
|
||||
|
||||
|
||||
def test_warp_tform():
|
||||
x = np.zeros((5, 5), dtype=np.double)
|
||||
x[2, 2] = 1
|
||||
|
||||
Reference in New Issue
Block a user