Skip to content

Commit 539f148

Browse files
committed
FIX: re-add require funcs check
1 parent ece527a commit 539f148

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

niworkflows/interfaces/bids.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,11 @@ def _run_interface(self, runtime):
280280
raise FileNotFoundError(
281281
f'No T1w images found for subject sub-{self.inputs.subject_id}'
282282
)
283+
284+
if self._require_funcs and not bids_dict['bold']:
285+
raise FileNotFoundError(
286+
f'No functional images found for subject sub-{self.inputs.subject_id}'
287+
)
283288

284289
for imtype in ['t2w', 'flair', 'fmap', 'sbref', 'roi', 'pet', 'asl']:
285290
if not bids_dict[imtype]:

0 commit comments

Comments
 (0)