Skip to content

Commit b60b4d8

Browse files
committed
fix: dcm2niix doctest
1 parent 26d82fe commit b60b4d8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

nipype/interfaces/dcm2nii.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -343,15 +343,15 @@ class Dcm2niix(CommandLine):
343343
344344
>>> from nipype.interfaces.dcm2nii import Dcm2niix
345345
>>> converter = Dcm2niix()
346-
>>> converter.inputs.source_dir = '.'
347-
>>> converter.inputs.compress = 'i'
348-
>>> converter.inputs.single_file = True
349-
>>> converter.cmdline # doctest: +SKIP
350-
'dcm2niix -b y -z y -x n -t n -m n -s y -v n .'
346+
>>> converter.inputs.source_dir = 'dicomdir'
347+
>>> converter.inputs.compression = 5
348+
>>> converter.inputs.output_dir = 'ds005'
349+
>>> converter.cmdline
350+
'dcm2niix -b y -z y -5 -x n -t n -m n -o ds005 -s n -v n dicomdir'
351351
352352
>>> flags = '-'.join([val.strip() + ' ' for val in sorted(' '.join(converter.cmdline.split()[1:-1]).split('-'))])
353353
>>> flags
354-
' -b y -m n -s y -t n -v n -x n -z y '
354+
' -5 -b y -m n -o ds005 -s n -t n -v n -x n -z y '
355355
"""
356356

357357
input_spec = Dcm2niixInputSpec

0 commit comments

Comments
 (0)