Skip to content

Commit 30a50f9

Browse files
committed
FIX: add require_funcs to init
1 parent 539f148 commit 30a50f9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

niworkflows/interfaces/bids.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,11 +261,12 @@ class BIDSDataGrabber(SimpleInterface):
261261
input_spec = _BIDSDataGrabberInputSpec
262262
output_spec = _BIDSDataGrabberOutputSpec
263263

264-
def __init__(self, *args, **kwargs):
264+
def __init__(self, *args, require_funcs=False, **kwargs):
265265
anat_only = kwargs.pop('anat_only', None)
266266
anat_derivatives = kwargs.pop('anat_derivatives', None)
267267
require_t1w = kwargs.pop('require_t1w', True)
268268
super().__init__(*args, **kwargs)
269+
self._require_funcs = require_funcs
269270
if anat_only is not None:
270271
self._require_funcs = not anat_only
271272
self._require_t1w = require_t1w and anat_derivatives is None

0 commit comments

Comments
 (0)