Skip to content

Commit

Permalink
Limit to MNI152NLin6Asym:res-2 data.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsalo committed Aug 8, 2024
1 parent 5cc9d48 commit 27eb886
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/fmripost_aroma/workflows/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,15 @@ def init_single_subject_wf(subject_id: str):
# Patch standard-space BOLD files into 'bold' key
subject_data['bold'] = listify(subject_data['bold_mni152nlin6asym'])

if not subject_data['bold_mni152nlin6asym']:
task_id = config.execution.task_id
raise RuntimeError(

Check warning on line 212 in src/fmripost_aroma/workflows/base.py

View check run for this annotation

Codecov / codecov/patch

src/fmripost_aroma/workflows/base.py#L211-L212

Added lines #L211 - L212 were not covered by tests
f"No MNI152NLin6Asym:res-2 BOLD images found for participant {subject_id} and "
f"task {task_id if task_id else '<all>'}. "
"All workflows require MNI152NLin6Asym:res-2 BOLD images. "
f"Please check your BIDS filters: {config.execution.bids_filters}."
)

# Make sure we always go through these two checks
if not subject_data['bold']:
task_id = config.execution.task_id
Expand Down

0 comments on commit 27eb886

Please sign in to comment.