@@ -77,25 +77,17 @@ def build_workflow(config_file, retval):
77
77
desc_content = dset_desc_path .read_bytes ()
78
78
config .execution .bids_description_hash = sha256 (desc_content ).hexdigest ()
79
79
80
- # First check that bids_dir looks like a BIDS folder
81
- subject_list = collect_participants (
82
- config .execution .layout , participant_label = config .execution .participant_label
83
- )
84
-
85
80
# Called with reports only
86
81
if config .execution .reports_only :
87
- build_log .log (25 , 'Running --reports-only on participants %s' , ', ' .join (subject_list ))
88
- session_list = (
89
- config .execution .bids_filters .get ('bold' , {}).get ('session' )
90
- if config .execution .bids_filters
91
- else None
82
+ build_log .log (
83
+ 25 ,
84
+ 'Running --reports-only on participants %s' ,
85
+ ', ' .join (config .execution .unique_labels ),
92
86
)
93
-
94
87
failed_reports = generate_reports (
95
- config .execution .participant_label ,
88
+ config .execution .unique_labels ,
96
89
config .execution .fmriprep_dir ,
97
90
config .execution .run_uuid ,
98
- session_list = session_list ,
99
91
)
100
92
if failed_reports :
101
93
config .loggers .cli .error (
@@ -110,7 +102,7 @@ def build_workflow(config_file, retval):
110
102
init_msg = [
111
103
"Building fMRIPrep's workflow:" ,
112
104
f'BIDS dataset path: { config .execution .bids_dir } .' ,
113
- f'Participant list: { subject_list } .' ,
105
+ f'Participant list: { config . execution . unique_labels } .' ,
114
106
f'Run identifier: { config .execution .run_uuid } .' ,
115
107
f'Output spaces: { config .execution .output_spaces } .' ,
116
108
]
@@ -123,7 +115,7 @@ def build_workflow(config_file, retval):
123
115
124
116
build_log .log (25 , f"\n { ' ' * 11 } * " .join (init_msg ))
125
117
126
- retval ['workflow' ] = init_fmriprep_wf ()
118
+ retval ['workflow' ] = init_fmriprep_wf (config . execution . unique_labels )
127
119
128
120
# Check for FS license after building the workflow
129
121
if not check_valid_fs_license ():
0 commit comments