Skip to content

Commit c3c30b3

Browse files
committed
fix: dcm2niix outname
1 parent 254b383 commit c3c30b3

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
@@ -418,7 +418,7 @@ def nipype_convert(item_dicoms, prefix, with_prov, bids, tmpdir, dcmconfig=None)
418418
convertnode = Node(Dcm2niix(from_file=fromfile), name='convert')
419419
convertnode.base_dir = tmpdir
420420
convertnode.inputs.source_names = item_dicoms
421-
convertnode.inputs.out_filename = op.basename(op.dirname(prefix))
421+
convertnode.inputs.out_filename = prefix
422422

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

0 commit comments

Comments
 (0)