From 78df3d089d71bf2abd81249e2095273b0c44028b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Orieux?= Date: Wed, 30 Oct 2013 09:06:13 +0100 Subject: [PATCH] Diminish rtol to 1e-5 for travis-ci --- skimage/deconvolution/tests/test_deconvolution.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/skimage/deconvolution/tests/test_deconvolution.py b/skimage/deconvolution/tests/test_deconvolution.py index ff062574..932dda3a 100644 --- a/skimage/deconvolution/tests/test_deconvolution.py +++ b/skimage/deconvolution/tests/test_deconvolution.py @@ -18,7 +18,7 @@ def test_wiener(): deconvolved = deconvolution.wiener(data, psf, 0.05) path = pjoin(dirname(abspath(__file__)), 'camera_wiener.npy') - np.testing.assert_allclose(deconvolved, np.load(path)) + np.testing.assert_allclose(deconvolved, np.load(path), rtol=1e-5) def test_unsupervised_wiener(): @@ -29,7 +29,7 @@ def test_unsupervised_wiener(): deconvolved, _ = deconvolution.unsupervised_wiener(data, psf) path = pjoin(dirname(abspath(__file__)), 'camera_unsup.npy') - np.testing.assert_allclose(deconvolved, np.load(path)) + np.testing.assert_allclose(deconvolved, np.load(path), rtol=1e-5) def test_richardson_lucy(): @@ -40,4 +40,4 @@ def test_richardson_lucy(): deconvolved = deconvolution.richardson_lucy(data, psf, 5) path = pjoin(dirname(abspath(__file__)), 'camera_rl.npy') - np.testing.assert_allclose(deconvolved, np.load(path)) + np.testing.assert_allclose(deconvolved, np.load(path), rtol=1e-5)