File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -222,17 +222,20 @@ 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" )
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
+ if anat_derivatives is not None :
230
+ self ._require_t1w = not anat_derivatives
228
231
229
232
def _run_interface (self , runtime ):
230
233
bids_dict = self .inputs .subject_data
231
234
232
235
self ._results ["out_dict" ] = bids_dict
233
236
self ._results .update (bids_dict )
234
237
235
- if not bids_dict [" t1w" ]:
238
+ if self . _require_t1w and not bids_dict [' t1w' ]:
236
239
raise FileNotFoundError (
237
240
"No T1w images found for subject sub-{}" .format (self .inputs .subject_id )
238
241
)
You can’t perform that action at this time.
0 commit comments