Skip to content

Commit 08b1d48

Browse files
authored
Merge pull request #62 from mgxd/master
fix: allow non-bids dcm2niix conversion
2 parents 7ca74cf + 659bf88 commit 08b1d48

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bin/heudiconv

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,10 @@ def convert(items, symlink=True, converter=None,
492492
if converter == 'dcm2nii':
493493
convertnode.inputs.gzip_output = outtype == 'nii.gz'
494494
else:
495-
convertnode.inputs.out_filename = os.path.basename(dirname +'_%e')
495+
if not is_bids:
496+
convertnode.inputs.bids_format = False
497+
convertnode.inputs.out_filename = os.path.basename(
498+
dirname +'_%e')
496499
convertnode.inputs.terminal_output = 'allatonce'
497500
res = convertnode.run()
498501
if isinstance(res.outputs.converted_files, list):

0 commit comments

Comments
 (0)