We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24b04e3 commit 1765d4aCopy full SHA for 1765d4a
fmriprep/workflows/base.py
@@ -571,9 +571,8 @@ def init_single_subject_wf(subject_id: str):
571
# Find precomputed fieldmaps that apply to this workflow
572
pared_cache = {}
573
for est in all_estimators:
574
- fmapid = re.sub(r'[^a-zA-Z0-9]', '', est.bids_id)
575
- if fmapid in fmap_cache:
576
- pared_cache[fmapid] = fmap_cache[fmapid]
+ if found := fmap_cache.get(re.sub(r'[^a-zA-Z0-9]', '', est.bids_id)):
+ pared_cache[est.bids_id] = found
577
else:
578
fmap_estimators.append(est)
579
0 commit comments