diff --git a/.maint/contributors.json b/.maint/contributors.json index fe51488c..2a7199d5 100644 --- a/.maint/contributors.json +++ b/.maint/contributors.json @@ -1 +1,7 @@ -[] +[ + { + "affiliation": "Montreal Neurological Institute, McGill University", + "name": "Huberty, Scott", + "orcid": "0000-0003-2637-031X" + } +] diff --git a/nibabies/workflows/anatomical/base.py b/nibabies/workflows/anatomical/base.py index 60dfc00d..489c3a81 100644 --- a/nibabies/workflows/anatomical/base.py +++ b/nibabies/workflows/anatomical/base.py @@ -612,6 +612,9 @@ def init_infant_single_anat_wf( "This workflow uses only T1w or T2w inputs, but both contrasts are available." ) + 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)