Skip to content

Commit f94a82c

Browse files
committed
fix: set threads when interface is run
1 parent cebb6f0 commit f94a82c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nipype/interfaces/afni/base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,11 @@ def __init__(self, **inputs):
160160
else:
161161
self._output_update()
162162

163+
def _run_interface(self, runtime):
163164
# Update num threads estimate from OMP_NUM_THREADS env var
164165
# Default to 1 if not set
165166
self.inputs.environ['OMP_NUM_THREADS'] = str(self.num_threads)
167+
return super(AFNICommand, self)._run_interface(runtime)
166168

167169
def _output_update(self):
168170
""" i think? updates class private attribute based on instance input

0 commit comments

Comments
 (0)