Skip to content

Commit d5bd465

Browse files
STY: Apply ruff/Perflint rule PERF403
PERF403 Use a dictionary comprehension instead of a for-loop
1 parent 3647c42 commit d5bd465

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

fmriprep/config.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -530,8 +530,7 @@ def _process_value(value):
530530
'raw': cls.bids_dir,
531531
'templateflow': Path(TF_LAYOUT.root),
532532
}
533-
for deriv_name, deriv_path in cls.derivatives.items():
534-
dataset_links[deriv_name] = deriv_path
533+
dataset_links.update(cls.derivatives)
535534
cls.dataset_links = dataset_links
536535

537536
if 'all' in cls.debug:

0 commit comments

Comments
 (0)