File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -170,9 +170,7 @@ def _generate_segment(self):
170
170
header = '\t \t <ul class="elem-desc">'
171
171
footer = '\t \t </ul>'
172
172
lines = [
173
- '\t \t \t <li>Task: {task_id} ({n_runs:d} run{s})</li>' .format (
174
- task_id = task_id , n_runs = n_runs , s = '' if n_runs == 1 else 's'
175
- )
173
+ f'\t \t \t <li>Task: { task_id } ({ n_runs :d} run{ "" if n_runs == 1 else "s" } )</li>'
176
174
for task_id , n_runs in sorted (counts .items ())
177
175
]
178
176
tasks = '\n ' .join ([header ] + lines + [footer ])
Original file line number Diff line number Diff line change @@ -215,12 +215,10 @@ def init_single_subject_wf(subject_id: str):
215
215
anat_only = config .workflow .anat_only
216
216
# Make sure we always go through these two checks
217
217
if not anat_only and not subject_data ['bold' ]:
218
- task_id = config .execution .task_id
218
+ task_id = config .execution .task_id or '<all>'
219
219
raise RuntimeError (
220
- 'No BOLD images found for participant {} and task {}. '
221
- 'All workflows require BOLD images.' .format (
222
- subject_id , task_id if task_id else '<all>'
223
- )
220
+ f'No BOLD images found for participant { subject_id } and '
221
+ f'task { task_id } . All workflows require BOLD images.'
224
222
)
225
223
226
224
bold_runs = [
You can’t perform that action at this time.
0 commit comments