Skip to content

Commit 6afb6f0

Browse files
committed
enh: cover one partial line
1 parent 2faf916 commit 6afb6f0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

nitransforms/tests/test_linear.py

Lines changed: 5 additions & 0 deletions
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('img.nii.gz', 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)