Skip to content

Commit 08dc3a3

Browse files
authored
fix: update test using xfm.apply()
1 parent 8dae35f commit 08dc3a3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nitransforms/tests/test_manip.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
RMSE_TOL,
1515
APPLY_NONLINEAR_CMD,
1616
)
17+
from nitransforms.resampling import apply
1718

1819
FMT = {"lta": "fs", "tfm": "itk"}
1920

@@ -54,7 +55,7 @@ def test_itk_h5(tmp_path, testdata_path):
5455
assert exit_code == 0
5556
sw_moved = nb.load("resampled.nii.gz")
5657

57-
nt_moved = xfm.apply(img_fname, order=0)
58+
nt_moved = apply(xfm, img_fname, order=0)
5859
nt_moved.to_filename("nt_resampled.nii.gz")
5960
diff = sw_moved.get_fdata() - nt_moved.get_fdata()
6061
# A certain tolerance is necessary because of resampling at borders

0 commit comments

Comments
 (0)