Skip to content

Commit 6a92496

Browse files
committed
Now Dcm2nii supports directory
1 parent 3b5136f commit 6a92496

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

nipype/interfaces/dcm2nii.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818

1919
class Dcm2niiInputSpec(CommandLineInputSpec):
2020
source_names = InputMultiPath(File(exists=True), argstr="%s", position=-1,
21-
copyfile=False, mandatory=True)
21+
copyfile=False, mandatory=True, xor=['source_dir'])
22+
source_dir = Directory(exists=True, argstr="%s", position=-1, mandatory=True,
23+
xor=['source_names'])
2224
anonymize = traits.Bool(True, argstr='-a', usedefault=True)
2325
config_file = File(exists=True, argstr="-b %s", genfile=True)
2426
collapse_folders = traits.Bool(True, argstr='-c', usedefault=True)

0 commit comments

Comments
 (0)