@@ -43,9 +43,9 @@ def get_input_fnames_cov(
4343 cfg : SimpleNamespace ,
4444 subject : str ,
4545 session : str | None ,
46- ) -> InFilesT :
46+ ) -> dict [ str , BIDSPath | str ] :
4747 cov_type = _get_cov_type (cfg )
48- in_files = dict ()
48+ in_files : InFilesT = dict ()
4949 fname_epochs = BIDSPath (
5050 subject = subject ,
5151 session = session ,
@@ -61,7 +61,10 @@ def get_input_fnames_cov(
6161 root = cfg .deriv_root ,
6262 check = False ,
6363 )
64- in_files ["report_info" ] = fname_epochs .copy ().update (processing = "clean" )
64+ report_info = fname_epochs .copy ().update (processing = "clean" )
65+ assert isinstance (report_info , BIDSPath )
66+ in_files ["report_info" ] = report_info
67+ in_files_broad : dict [str , BIDSPath | str ] = dict ()
6568 _update_for_splits (in_files , "report_info" , single = True )
6669 for task in cfg .all_tasks :
6770 fname_evoked = fname_epochs .copy ().update (
@@ -70,8 +73,10 @@ def get_input_fnames_cov(
7073 if fname_evoked .fpath .exists ():
7174 in_files [f"evoked_task-{ task } " ] = fname_evoked
7275 if cov_type == "custom" :
73- in_files ["__unknown_inputs__" ] = "custom noise_cov callable"
74- return in_files
76+ for key , val in in_files .items ():
77+ in_files_broad [key ] = val
78+ in_files_broad ["__unknown_inputs__" ] = "custom noise_cov callable"
79+ return in_files_broad
7580 if cov_type == "raw" :
7681 assert cfg .noise_cov in ("rest" , "emptyroom" ), cfg .noise_cov
7782 in_files ["raw" ] = BIDSPath (
@@ -95,7 +100,9 @@ def get_input_fnames_cov(
95100 key = f"epochs_task-{ task } "
96101 in_files [key ] = fname_epochs .copy ().update (task = task )
97102 _update_for_splits (in_files , key , single = True )
98- return in_files
103+ for key , val in in_files .items ():
104+ in_files_broad [key ] = val
105+ return in_files_broad
99106
100107
101108def compute_cov_rank_from_epochs (
0 commit comments