Skip to content

Commit e5b0b7f

Browse files
-w argument support
1 parent 2f85d92 commit e5b0b7f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

nipype/interfaces/dcm2nii.py

+8
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,14 @@ class Dcm2niixInputSpec(CommandLineInputSpec):
376376
argstr="-p", desc="Philips precise float (not display) scaling"
377377
)
378378
to_nrrd = traits.Bool(argstr="-e", desc="Export as NRRD instead of NIfTI")
379+
name_conflicts = traits.Enum(
380+
2,
381+
1,
382+
0,
383+
argstr="-w %d",
384+
usedefault=True,
385+
descr="Write behavior for name conflicts - [0=skip duplicates, 1=overwrite, 2=add suffix]",
386+
)
379387

380388

381389
class Dcm2niixOutputSpec(TraitedSpec):

0 commit comments

Comments
 (0)