Skip to content

Commit b8367f2

Browse files
author
bpinsard
committed
inverse deformation field
1 parent 15a2205 commit b8367f2

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

nipype/interfaces/spm/utils.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,13 @@ class ApplyInverseDeformationInput(SPMCommandInputSpec):
222222
deformation = File(
223223
exists=True,
224224
field='comp{1}.inv.comp{1}.sn2def.matname',
225-
desc='SN SPM deformation file')
225+
desc='SN SPM deformation file',
226+
xor=['deformation_field'])
227+
deformation_field = File(
228+
exists=True,
229+
field='comp{1}.inv.comp{1}.def',
230+
desc='SN SPM deformation file',
231+
xor=['deformation'])
226232
interpolation = traits.Range(
227233
low=0, hign=7, field='interp',
228234
desc='degree of b-spline used for interpolation')
@@ -261,6 +267,8 @@ def _format_arg(self, opt, spec, val):
261267
return scans_for_fname(filename_to_list(val))
262268
if opt == 'deformation':
263269
return np.array([list_to_filename(val)], dtype=object)
270+
if opt == 'deformation_field':
271+
return np.array([list_to_filename(val)], dtype=object)
264272
return val
265273

266274
def _list_outputs(self):

0 commit comments

Comments
 (0)