Skip to content

Commit 6bf5f7a

Browse files
committed
FIX: dcm2niix -m arguments
1 parent fec8cd9 commit 6bf5f7a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

nipype/interfaces/dcm2nii.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,8 @@ class Dcm2niixInputSpec(CommandLineInputSpec):
332332
0,
333333
1,
334334
2,
335+
default=0,
336+
usedefault=True,
335337
argstr="-m %d",
336338
desc="merge 2D slices from same series regardless of echo, exposure, etc. - [0=no, 1=yes, 2=auto]",
337339
)
@@ -395,7 +397,7 @@ class Dcm2niix(CommandLine):
395397
>>> converter.inputs.compression = 5
396398
>>> converter.inputs.output_dir = 'ds005'
397399
>>> converter.cmdline
398-
'dcm2niix -b y -z y -5 -x n -t n -m n -o ds005 -s n -v n dicomdir'
400+
'dcm2niix -b y -z y -5 -x n -t n -m 0 -o ds005 -s n -v n dicomdir'
399401
>>> converter.run() # doctest: +SKIP
400402
401403
In the example below, we note that the current version of dcm2niix
@@ -408,7 +410,7 @@ class Dcm2niix(CommandLine):
408410
>>> converter.inputs.compression = 5
409411
>>> converter.inputs.output_dir = 'ds005'
410412
>>> converter.cmdline
411-
'dcm2niix -b y -z y -5 -x n -t n -m n -o ds005 -s n -v n .'
413+
'dcm2niix -b y -z y -5 -x n -t n -m 0 -o ds005 -s n -v n .'
412414
>>> converter.run() # doctest: +SKIP
413415
"""
414416

@@ -423,7 +425,6 @@ def version(self):
423425
def _format_arg(self, opt, spec, val):
424426
bools = [
425427
"bids_format",
426-
"merge_imgs",
427428
"single_file",
428429
"verbose",
429430
"crop",

0 commit comments

Comments
 (0)