Skip to content

Commit 312cd2e

Browse files
authored
Merge pull request #351 from mgxd/bf/outname
fix: dcm2niix outname
2 parents 75a4c82 + c3c30b3 commit 312cd2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

heudiconv/convert.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ def nipype_convert(item_dicoms, prefix, with_prov, bids_options, tmpdir, dcmconf
420420
convertnode = Node(Dcm2niix(from_file=fromfile), name='convert')
421421
convertnode.base_dir = tmpdir
422422
convertnode.inputs.source_names = item_dicoms
423-
convertnode.inputs.out_filename = op.basename(op.dirname(prefix))
423+
convertnode.inputs.out_filename = prefix
424424

425425
if nipype.__version__.split('.')[0] == '0':
426426
# deprecated since 1.0, might be needed(?) before

0 commit comments

Comments
 (0)