From 3e70fa8c8fdae2e5f7bc7ec6ebec74dcd6d20362 Mon Sep 17 00:00:00 2001 From: Philip Cook Date: Thu, 21 Mar 2024 01:24:17 -0400 Subject: [PATCH] BUG: Less stringent test --- tests/test_registation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_registation.py b/tests/test_registation.py index 97af91d7..4037692b 100644 --- a/tests/test_registation.py +++ b/tests/test_registation.py @@ -58,7 +58,7 @@ def test_example(self): fixed=fixed, moving=moving, transformlist=mytx["fwdtransforms"], singleprecision=True ) self.assertEqual(mywarpedimage2.pixeltype, moving.pixeltype) - self.assertAlmostEqual(mywarpedimage.sum(), mywarpedimage2.sum(), places=3) + self.assertLessEqual(np.sum((mywarpedimage.numpy() - mywarpedimage2.numpy()) ** 2), 0.1) # bad interpolator with self.assertRaises(Exception):