From c43ec42bb8a140ca4de7b43e9967263fb23099bd Mon Sep 17 00:00:00 2001 From: Edoardo Pasca Date: Fri, 10 May 2019 15:23:28 +0100 Subject: adjusted decimal --- Wrappers/Python/test/test_Gradient.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Wrappers/Python') diff --git a/Wrappers/Python/test/test_Gradient.py b/Wrappers/Python/test/test_Gradient.py index 89f26eb..6d9d3be 100755 --- a/Wrappers/Python/test/test_Gradient.py +++ b/Wrappers/Python/test/test_Gradient.py @@ -93,9 +93,9 @@ class TestGradient(unittest.TestCase): G = Gradient(ig) norm1 = G.norm(iterations=300) print ("should be sqrt(8) {} {}".format(numpy.sqrt(8), norm1)) - numpy.testing.assert_almost_equal(norm1, numpy.sqrt(8), decimal=2) + numpy.testing.assert_almost_equal(norm1, numpy.sqrt(8), decimal=1) ig4 = ImageGeometry(M,N, channels=3) G4 = Gradient(ig4, correlation=Gradient.CORRELATION_SPACECHANNEL) norm4 = G4.norm(iterations=300) print ("should be sqrt(12) {} {}".format(numpy.sqrt(12), norm4)) - numpy.testing.assert_almost_equal(norm4, numpy.sqrt(12), decimal=2) + numpy.testing.assert_almost_equal(norm4, numpy.sqrt(12), decimal=1) -- cgit v1.2.3