File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -222,17 +222,19 @@ class BIDSDataGrabber(SimpleInterface):
222222
223223 def __init__ (self , * args , ** kwargs ):
224224 anat_only = kwargs .pop ("anat_only" )
225+ anat_derivatives = kwargs .pop ("anat_derivatives" , None )
225226 super (BIDSDataGrabber , self ).__init__ (* args , ** kwargs )
226227 if anat_only is not None :
227228 self ._require_funcs = not anat_only
229+ self ._require_t1w = anat_derivatives is None
228230
229231 def _run_interface (self , runtime ):
230232 bids_dict = self .inputs .subject_data
231233
232234 self ._results ["out_dict" ] = bids_dict
233235 self ._results .update (bids_dict )
234236
235- if not bids_dict [" t1w" ]:
237+ if self . _require_t1w and not bids_dict [' t1w' ]:
236238 raise FileNotFoundError (
237239 "No T1w images found for subject sub-{}" .format (self .inputs .subject_id )
238240 )
You can’t perform that action at this time.
0 commit comments