Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions nibabies/workflows/anatomical/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,9 @@ def init_infant_single_anat_wf(
"This workflow uses only T1w or T2w inputs, but both contrasts are available."
)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI - I decided to place the check here, because that is where you seem to be checking for the T[1,2]w images already.

if not (t1w or t2w):
raise RuntimeError("This workflow requires either a T1w or T2w, but none were found.")

anat_files = t1w or t2w
num_files = len(anat_files)
workflow = LiterateWorkflow(name=name)
Expand Down