File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 36
36
37
37
def _normalize_intent (
38
38
intent : str ,
39
- layout : BIDSLayout ,
40
39
subject : str
41
40
) -> str | None :
42
41
"""Convert BIDS-URI intent to subject-relative intent
@@ -66,12 +65,11 @@ def _resolve_intent(
66
65
67
66
def _filter_metadata (
68
67
metadata : Dict [str , Any ],
69
- layout : BIDSLayout ,
70
68
subject : str
71
69
) -> Dict [str , Any ]:
72
70
intents = metadata .get ("IntendedFor" )
73
71
if intents :
74
- updated = [_normalize_intent (intent , layout , subject ) for intent in listify (intents )]
72
+ updated = [_normalize_intent (intent , subject ) for intent in listify (intents )]
75
73
return {** metadata , "IntendedFor" : updated }
76
74
return metadata
77
75
@@ -439,7 +437,7 @@ def find_estimators(
439
437
for fmap in layout .get (** {** entities , ** {'direction' : dirs }}):
440
438
fmapfile = fm .FieldmapFile (
441
439
fmap .path ,
442
- metadata = _filter_metadata (fmap .get_metadata (), layout , subject ),
440
+ metadata = _filter_metadata (fmap .get_metadata (), subject ),
443
441
)
444
442
by_intent .setdefault (
445
443
tuple (fmapfile .metadata .get ('IntendedFor' , ())), []
You can’t perform that action at this time.
0 commit comments