Skip to content

Commit 5e3f34b

Browse files
committed
BF: do not try to embed metadata from dicoms if no BIDS output files
1 parent 764a7a3 commit 5e3f34b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

heudiconv/convert.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,8 @@ def convert(items, converter, scaninfo_suffix, custom_callable, with_prov,
296296
lgr.warning("For now not embedding BIDS and info generated "
297297
".nii.gz itself since sequence produced "
298298
"multiple files")
299+
elif not bids_outfiles:
300+
lgr.debug("No BIDS files were produced, nothing to embed to then")
299301
else:
300302
embed_metadata_from_dicoms(bids, item_dicoms, outname, outname_bids,
301303
prov_file, scaninfo, tempdirs, with_prov,

0 commit comments

Comments
 (0)