Skip to content

Commit

Permalink
Merge pull request #587 from ANTsX/aat_test_fix
Browse files Browse the repository at this point in the history
BUG: Overly strict floating point test
  • Loading branch information
cookpa authored Mar 21, 2024
2 parents 8612b9e + 8329586 commit 5a89d9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_registation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 5a89d9a

Please sign in to comment.