Skip to content

Commit

Permalink
FIX: dcm2niix -m arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Jul 5, 2023
1 parent fec8cd9 commit 6bf5f7a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions nipype/interfaces/dcm2nii.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,8 @@ class Dcm2niixInputSpec(CommandLineInputSpec):
0,
1,
2,
default=0,
usedefault=True,
argstr="-m %d",
desc="merge 2D slices from same series regardless of echo, exposure, etc. - [0=no, 1=yes, 2=auto]",
)
Expand Down Expand Up @@ -395,7 +397,7 @@ class Dcm2niix(CommandLine):
>>> converter.inputs.compression = 5
>>> converter.inputs.output_dir = 'ds005'
>>> converter.cmdline
'dcm2niix -b y -z y -5 -x n -t n -m n -o ds005 -s n -v n dicomdir'
'dcm2niix -b y -z y -5 -x n -t n -m 0 -o ds005 -s n -v n dicomdir'
>>> converter.run() # doctest: +SKIP
In the example below, we note that the current version of dcm2niix
Expand All @@ -408,7 +410,7 @@ class Dcm2niix(CommandLine):
>>> converter.inputs.compression = 5
>>> converter.inputs.output_dir = 'ds005'
>>> converter.cmdline
'dcm2niix -b y -z y -5 -x n -t n -m n -o ds005 -s n -v n .'
'dcm2niix -b y -z y -5 -x n -t n -m 0 -o ds005 -s n -v n .'
>>> converter.run() # doctest: +SKIP
"""

Expand All @@ -423,7 +425,6 @@ def version(self):
def _format_arg(self, opt, spec, val):
bools = [
"bids_format",
"merge_imgs",
"single_file",
"verbose",
"crop",
Expand Down

0 comments on commit 6bf5f7a

Please sign in to comment.