summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorepapoutsellis <epapoutsellis@gmail.com>2019-05-13 16:18:52 +0100
committerepapoutsellis <epapoutsellis@gmail.com>2019-05-13 16:18:52 +0100
commit52116cc263d6f3fa1a39de8a2b4bdbdda6de6d04 (patch)
treebd7aab99e34c80793255e4a139e91dec19025a39
parent0d409c14b7b4a21835abf812c8e7ef931c8dbace (diff)
parentcc3efc1f09d167deea1d82d461abd02a49aec357 (diff)
downloadframework-52116cc263d6f3fa1a39de8a2b4bdbdda6de6d04.tar.gz
framework-52116cc263d6f3fa1a39de8a2b4bdbdda6de6d04.tar.bz2
framework-52116cc263d6f3fa1a39de8a2b4bdbdda6de6d04.tar.xz
framework-52116cc263d6f3fa1a39de8a2b4bdbdda6de6d04.zip
merge
-rwxr-xr-xWrappers/Python/test/test_Gradient.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Wrappers/Python/test/test_Gradient.py b/Wrappers/Python/test/test_Gradient.py
index 6d9d3be..4b7a034 100755
--- a/Wrappers/Python/test/test_Gradient.py
+++ b/Wrappers/Python/test/test_Gradient.py
@@ -98,4 +98,4 @@ class TestGradient(unittest.TestCase):
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=1)
+ self.assertTrue((norm4 - numpy.sqrt(12))/norm4 < 0.2)