Skip to content

Commit 4fc2ba6

Browse files
committed
FIX: Changes 'traits.Either' to 'InputMultiPath'
1 parent f9ca79b commit 4fc2ba6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nipype/interfaces/freesurfer/preprocess.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ class ReconAllInputSpec(CommandLineInputSpec):
638638
desc="Set parameters using expert file")
639639
subjects_dir = Directory(exists=True, argstr='-sd %s', hash_files=False,
640640
desc='path to subjects directory', genfile=True)
641-
flags = traits.Either(traits.Str, traits.List, argstr='%s', desc='additional parameters')
641+
flags = InputMultiPath(traits.Str, argstr='%s', desc='additional parameters')
642642

643643
# Expert options
644644
talairach = traits.Str(desc="Flags to pass to talairach commands", xor=['expert'])
@@ -690,10 +690,10 @@ class ReconAll(CommandLine):
690690
>>> reconall.cmdline # doctest: +ALLOW_UNICODE
691691
'recon-all -all -i structural.nii -subjid foo -sd .'
692692
>>> reconall.inputs.flags = "-qcache"
693-
>>> reconall.cmdline # doctest: +IGNORE_UNICODE
693+
>>> reconall.cmdline # doctest: +ALLOW_UNICODE
694694
'recon-all -all -i structural.nii -qcache -subjid foo -sd .'
695695
>>> reconall.inputs.flags = ["-cw256", "-qcache"]
696-
>>> reconall.cmdline # doctest: +IGNORE_UNICODE
696+
>>> reconall.cmdline # doctest: +ALLOW_UNICODE
697697
'recon-all -all -i structural.nii -cw256 -qcache -subjid foo -sd .'
698698
"""
699699

0 commit comments

Comments
 (0)