Skip to content

Commit

Permalink
Merge pull request #360 from darrencl/fix/convert_none_sorted
Browse files Browse the repository at this point in the history
Fixed possible TypeError on sorting None object
  • Loading branch information
mgxd authored Jul 17, 2019
2 parents 4b82ec2 + 6da888b commit 02f5980
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions heudiconv/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,9 +503,9 @@ def save_converted_files(res, item_dicoms, bids_options, outtype, prefix, outnam

# Also copy BIDS files although they might need to
# be merged/postprocessed later
bids_files = sorted(res.outputs.bids
if len(res.outputs.bids) == len(res_files)
else [None] * len(res_files))
bids_files = (sorted(res.outputs.bids)
if len(res.outputs.bids) == len(res_files)
else [None] * len(res_files))

### Do we have a multi-echo series? ###
# Some Siemens sequences (e.g. CMRR's MB-EPI) set the label 'TE1',
Expand Down

0 comments on commit 02f5980

Please sign in to comment.