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):
222
222
223
223
def __init__ (self , * args , ** kwargs ):
224
224
anat_only = kwargs .pop ("anat_only" )
225
+ anat_derivatives = kwargs .pop ("anat_derivatives" , None )
225
226
super (BIDSDataGrabber , self ).__init__ (* args , ** kwargs )
226
227
if anat_only is not None :
227
228
self ._require_funcs = not anat_only
229
+ self ._require_t1w = anat_derivatives is None
228
230
229
231
def _run_interface (self , runtime ):
230
232
bids_dict = self .inputs .subject_data
231
233
232
234
self ._results ["out_dict" ] = bids_dict
233
235
self ._results .update (bids_dict )
234
236
235
- if not bids_dict [" t1w" ]:
237
+ if self . _require_t1w and not bids_dict [' t1w' ]:
236
238
raise FileNotFoundError (
237
239
"No T1w images found for subject sub-{}" .format (self .inputs .subject_id )
238
240
)
You can’t perform that action at this time.
0 commit comments