We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0970b86 + 47b30bb commit ade3fd5Copy full SHA for ade3fd5
heudiconv/convert.py
@@ -562,6 +562,15 @@ def convert(
562
563
for item in items:
564
prefix, outtypes, item_dicoms = item
565
+ if isinstance(outtypes, str): # type: ignore[unreachable]
566
+ lgr.warning( # type: ignore[unreachable]
567
+ "Provided output types %r of type 'str' instead "
568
+ "of a tuple for prefix %r. Likely need to fix-up your heuristic. "
569
+ "Meanwhile we are 'manually' converting to 'tuple'",
570
+ outtypes,
571
+ prefix,
572
+ )
573
+ outtypes = (outtypes,)
574
prefix_dirname = op.dirname(prefix)
575
outname_bids = prefix + ".json"
576
bids_outfiles = []
0 commit comments