Skip to content

Commit a75167b

Browse files
committed
Trying to fix previous commit error.
1 parent f0742c1 commit a75167b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

heudiconv/convert.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ def save_converted_files(res, item_dicoms, bids, outtype, prefix, outname_bids,
442442
from nipype.interfaces.base import isdefined
443443

444444
bids_outfiles = []
445-
res_files = sorted(res.outputs.converted_files)
445+
res_files = res.outputs.converted_files
446446

447447
if not len(res_files):
448448
lgr.debug("DICOMs {} were not converted".format(item_dicoms))
@@ -454,6 +454,7 @@ def save_converted_files(res, item_dicoms, bids, outtype, prefix, outname_bids,
454454
safe_copyfile(res.outputs.bvals, outname_bvals, overwrite)
455455

456456
if isinstance(res_files, list):
457+
res_files = sorted(res_files)
457458
# we should provide specific handling for fmap,
458459
# dwi etc which might spit out multiple files
459460

0 commit comments

Comments
 (0)