Skip to content

Commit 02e56f9

Browse files
committed
fix: contain environmental variable to interface
1 parent a81d993 commit 02e56f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nipype/interfaces/afni/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def __init__(self, **inputs):
162162

163163
# Update num threads estimate from OMP_NUM_THREADS env var
164164
# Default to 1 if not set
165-
os.environ['OMP_NUM_THREADS'] = str(self.num_threads)
165+
self.inputs.environ['OMP_NUM_THREADS'] = str(self.num_threads)
166166

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

0 commit comments

Comments
 (0)