update affine check
@@ -148,7 +148,7 @@ def _copyxform(ref_image, out_image, message=None):
resampled = nb.load(out_image)
orig = nb.load(ref_image)
- if np.any(orig.affine != resampled.affine):
+ if not np.allclose(orig.affine, resampled.affine):
LOG.warning('Affines of input and reference images '
'do not match, CopyXForm will probably '
'make the input image useless.')
