Skip to content

Commit

Permalink
BUG: Less stringent test
Browse files Browse the repository at this point in the history
  • Loading branch information
cookpa committed Mar 21, 2024
1 parent ec7a9c8 commit 3e70fa8
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 3e70fa8

Please sign in to comment.