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 3636
3737def _normalize_intent (
3838 intent : str ,
39- layout : BIDSLayout ,
4039 subject : str
4140) -> str | None :
4241 """Convert BIDS-URI intent to subject-relative intent
@@ -66,12 +65,11 @@ def _resolve_intent(
6665
6766def _filter_metadata (
6867 metadata : Dict [str , Any ],
69- layout : BIDSLayout ,
7068 subject : str
7169) -> Dict [str , Any ]:
7270 intents = metadata .get ("IntendedFor" )
7371 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 )]
7573 return {** metadata , "IntendedFor" : updated }
7674 return metadata
7775
@@ -439,7 +437,7 @@ def find_estimators(
439437 for fmap in layout .get (** {** entities , ** {'direction' : dirs }}):
440438 fmapfile = fm .FieldmapFile (
441439 fmap .path ,
442- metadata = _filter_metadata (fmap .get_metadata (), layout , subject ),
440+ metadata = _filter_metadata (fmap .get_metadata (), subject ),
443441 )
444442 by_intent .setdefault (
445443 tuple (fmapfile .metadata .get ('IntendedFor' , ())), []
You can’t perform that action at this time.
0 commit comments