We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e1b2ce commit 345e978Copy full SHA for 345e978
nipype/interfaces/afni/base.py
@@ -201,7 +201,9 @@ def set_default_output_type(cls, outputtype):
201
def __init__(self, **inputs):
202
super(AFNICommand, self).__init__(**inputs)
203
self.inputs.on_trait_change(self._output_update, 'outputtype')
204
- self.inputs.on_trait_change(self._nthreads_update, 'num_threads')
+
205
+ if hasattr(self.inputs, 'num_threads'):
206
+ self.inputs.on_trait_change(self._nthreads_update, 'num_threads')
207
208
if self._outputtype is None:
209
self._outputtype = Info.outputtype()
0 commit comments