File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -264,12 +264,17 @@ class Dcm2niixInputSpec(CommandLineInputSpec):
264
264
position = - 1 ,
265
265
copyfile = False ,
266
266
mandatory = True ,
267
+ desc = ('A set of filenames to be converted. Note that the current '
268
+ 'version of dcm2niix converts any files in the directory. To '
269
+ 'only convert specific files they should be in an isolated '
270
+ 'directory' ),
267
271
xor = ['source_dir' ])
268
272
source_dir = Directory (
269
273
exists = True ,
270
274
argstr = "%s" ,
271
275
position = - 1 ,
272
276
mandatory = True ,
277
+ desc = 'A directory containing dicom files to be converted' ,
273
278
xor = ['source_names' ])
274
279
out_filename = traits .Str (
275
280
argstr = "-f %s" ,
@@ -377,6 +382,10 @@ class Dcm2niix(CommandLine):
377
382
'dcm2niix -b y -z y -5 -x n -t n -m n -o ds005 -s n -v n dicomdir'
378
383
>>> converter.run() # doctest: +SKIP
379
384
385
+ # In the example below, we note that the current version of dcm2niix
386
+ # converts any files in the directory containing the files in the list. We
387
+ # also do not support nested filenames with this option. Thus all files
388
+ # should have a common root directory.
380
389
>>> converter = Dcm2niix()
381
390
>>> converter.inputs.source_names = ['functional_1.dcm', 'functional_2.dcm']
382
391
>>> converter.inputs.compression = 5
You can’t perform that action at this time.
0 commit comments