Skip to content

Commit

Permalink
BUG: Test files not images
Browse files Browse the repository at this point in the history
  • Loading branch information
cookpa committed Nov 25, 2024
1 parent 91a4f9e commit b201507
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,10 +475,10 @@ def test_reg_precision_option(self):
fi = ants.resample_image(fi, (60, 60), 1, 0)
mi = ants.resample_image(mi, (60, 60), 1, 0)
mytx = ants.registration(fixed=fi, moving=mi, type_of_transform="SyN") # should be float precision
info = ants.image_header_info(ants.image_read(mytx["fwdtransforms"][0]))
info = ants.image_header_info(mytx["fwdtransforms"][0])
self.assertEqual(info['pixeltype'], 'float')
mytx = ants.registration(fixed=fi, moving=mi, type_of_transform="SyN", singleprecision=False)
info = ants.image_header_info(ants.image_read(mytx["fwdtransforms"][0]))
info = ants.image_header_info(mytx["fwdtransforms"][0])
self.assertEqual(info['pixeltype'], 'double')

if __name__ == "__main__":
Expand Down

0 comments on commit b201507

Please sign in to comment.