Skip to content

Commit ebcafde

Browse files
committed
WIP: Add FS transform regression
1 parent 4acfdbc commit ebcafde

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

nitransforms/tests/test_linear.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828
3dAllineate -base {reference} -input {moving} \
2929
-prefix resampled.nii.gz -1Dmatrix_apply {transform} -final NN\
3030
""".format,
31+
'fs': """\
32+
mri_vol2vol --mov {moving} --targ {reference} --lta {transform} \
33+
--o resampled.nii.gz --nearest --inv""".format,
3134
}
3235

3336

@@ -124,7 +127,7 @@ def test_linear_save(tmpdir, data_path, get_testdata, image_orientation, sw_tool
124127
@pytest.mark.parametrize('image_orientation', [
125128
'RAS', 'LAS', 'LPS', # 'oblique',
126129
])
127-
@pytest.mark.parametrize('sw_tool', ['itk', 'fsl', 'afni'])
130+
@pytest.mark.parametrize('sw_tool', ['itk', 'fsl', 'afni', 'fs'])
128131
def test_apply_linear_transform(
129132
tmpdir,
130133
get_testdata,
@@ -143,6 +146,8 @@ def test_apply_linear_transform(
143146
ext = ''
144147
if sw_tool == 'itk':
145148
ext = '.tfm'
149+
elif sw_tool == 'fs':
150+
ext = '.lta'
146151

147152
img.to_filename('img.nii.gz')
148153
xfm_fname = 'M.%s%s' % (sw_tool, ext)

0 commit comments

Comments
 (0)