Skip to content

Commit 58e6ab8

Browse files
committed
enh: cover one partial line
1 parent 2faf916 commit 58e6ab8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

nitransforms/tests/test_linear.py

+5
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,11 @@ def test_apply_linear_transform(
172172
# A certain tolerance is necessary because of resampling at borders
173173
assert (np.abs(diff) > 1e-3).sum() / diff.size < TESTS_BORDER_TOLERANCE
174174

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+
175180

176181
def test_Affine_to_x5(tmpdir, testdata_path):
177182
"""Test affine's operations."""

0 commit comments

Comments
 (0)