@@ -192,7 +192,7 @@ class Dcm2niixInputSpec(CommandLineInputSpec):
192
192
copyfile = False , mandatory = True , xor = ['source_dir' ])
193
193
source_dir = Directory (exists = True , argstr = "%s" , position = - 1 , mandatory = True ,
194
194
xor = ['source_names' ])
195
- out_filename = traits .Str ('%q ' , argstr = "-f %s" , usedefault = True )
195
+ out_filename = traits .Str ('%t%p ' , argstr = "-f %s" , usedefault = True )
196
196
output_dir = Directory (exists = True , argstr = '-o %s' , genfile = True )
197
197
bids_format = traits .Bool (True , argstr = '-b' , usedefault = True )
198
198
compress = traits .Enum ('i' , ['y' ,'i' ,'n' ], argstr = '-z %s' , usedefault = True )
@@ -216,9 +216,10 @@ class Dcm2niix(CommandLine):
216
216
>>> converter = Dcm2niix()
217
217
>>> converter.inputs.source_names = ['functional_1.dcm', 'functional_2.dcm']
218
218
>>> converter.inputs.compress = 'i'
219
+ >>> converter.inputs.single_file = True
219
220
>>> converter.inputs.output_dir = '.'
220
221
>>> converter.cmdline
221
- 'dcm2niix -b y -z i -m n -f %q -o . -s n -v n functional_1.dcm'
222
+ 'dcm2niix -b y -z i -m n -f %q -o . -s y -v n functional_1.dcm'
222
223
"""
223
224
224
225
input_spec = Dcm2niixInputSpec
0 commit comments