Skip to content

Commit

Permalink
update merge_imgs input type of dcm2niix Node
Browse files Browse the repository at this point in the history
from Boolean to Enum to allow value 2 (auto option, default in new versions). No usedefault to preserve backwards compatibility
  • Loading branch information
mauriliogenovese committed Mar 7, 2023
1 parent cdfe679 commit 3ab8397
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nipype/interfaces/dcm2nii.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,10 @@ class Dcm2niixInputSpec(CommandLineInputSpec):
usedefault=True,
desc="Gzip compress images - [y=pigz, i=internal, n=no, 3=no,3D]",
)
merge_imgs = traits.Bool(
False, argstr="-m", usedefault=True, desc="merge 2D slices from same series"
merge_imgs = traits.Enum(
0, 1, 2,
argstr="-m %d",
desc="merge 2D slices from same series regardless of echo, exposure, etc. - [0=no, 1=yes, 2=auto]",
)
single_file = traits.Bool(
False, argstr="-s", usedefault=True, desc="Single file mode"
Expand Down

0 comments on commit 3ab8397

Please sign in to comment.