Skip to content

Commit b8f8e88

Browse files
committed
Merge pull request #1284 from srothmei/freesurfer_vol2surf_mkmask_xor
FIX: Freesurfer surf2vol - Added XOR to mkmask and source_file
2 parents 2602cb6 + adefb22 commit b8f8e88

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nipype/interfaces/freesurfer/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ def _gen_filename(self, name):
390390

391391
class Surface2VolTransformInputSpec(FSTraitedSpec):
392392
source_file = File(exists=True, argstr='--surfval %s',
393-
copyfile=False, mandatory=True,
393+
copyfile=False, mandatory=True, xor=['mkmask'],
394394
desc='This is the source of the surface values')
395395
hemi = traits.Str(argstr='--hemi %s', mandatory=True,
396396
desc='hemisphere of data')
@@ -404,7 +404,7 @@ class Surface2VolTransformInputSpec(FSTraitedSpec):
404404
template_file = File(exists=True, argstr='--template %s',
405405
desc='Output template volume')
406406
mkmask = traits.Bool(desc='make a mask instead of loading surface values',
407-
argstr='--mkmask')
407+
argstr='--mkmask', xor=['source_file'])
408408
vertexvol_file = File(name_template="%s_asVol_vertex.nii",
409409
desc=('Path name of the vertex output volume, which '
410410
'is the same as output volume except that the '

0 commit comments

Comments
 (0)