We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2faf916 commit 58e6ab8Copy full SHA for 58e6ab8
nitransforms/tests/test_linear.py
@@ -172,6 +172,11 @@ def test_apply_linear_transform(
172
# A certain tolerance is necessary because of resampling at borders
173
assert (np.abs(diff) > 1e-3).sum() / diff.size < TESTS_BORDER_TOLERANCE
174
175
+ nt_moved = xfm.apply(str(img), order=0)
176
+ diff = sw_moved.get_fdata() - nt_moved.get_fdata()
177
+ # A certain tolerance is necessary because of resampling at borders
178
+ assert (np.abs(diff) > 1e-3).sum() / diff.size < TESTS_BORDER_TOLERANCE
179
+
180
181
def test_Affine_to_x5(tmpdir, testdata_path):
182
"""Test affine's operations."""
0 commit comments