mirror of
https://github.com/wassname/scikit-image.git
synced 2026-10-04 13:00:57 +08:00
Add random seeds to tests per #1044
This commit is contained in:
1 parent
1c27a97d26
commit
5ef3f95d71
12 files changed
+24
No files matched your search
@@ -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