Skip to content

Commit 1c5ca68

Browse files
committed
RF+typo fix: no need for explicit list in sorted()
1 parent 97b76f3 commit 1c5ca68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

heudiconv/bids.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ def save_scans_key(item, bids_files):
390390
subj_, ses_ = find_subj_ses(f_name)
391391
if not subj_:
392392
lgr.warning(
393-
"Failed to detect fullfilled BIDS layout. "
393+
"Failed to detect fulfilled BIDS layout. "
394394
"No scans.tsv file(s) will be produced for %s",
395395
", ".join(bids_files)
396396
)
@@ -929,7 +929,7 @@ def populate_intended_for(path_to_bids_session, matching_parameters, criterion):
929929
op.relpath(remove_suffix(json_file, '.json') + '.nii.gz', start=subj_folder)
930930
)
931931
if intended_for:
932-
intended_for = sorted([str(f) for f in intended_for])
932+
intended_for = sorted(str(f) for f in intended_for)
933933
# Add this intended_for to all fmap files in the fmap_group:
934934
for fm_json in unique_fmap_groups[fmap_group]:
935935
update_json(fm_json, {"IntendedFor": intended_for}, pretty=True)

0 commit comments

Comments
 (0)