Skip to content

Commit d83d849

Browse files
committed
Reversed logic for afni OMP_NUM_THREADS
1 parent 35bdb2d commit d83d849

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

nipype/interfaces/afni/base.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,7 @@ def __init__(self, **inputs):
159159

160160
# Update num threads estimate from OMP_NUM_THREADS env var
161161
# Default to 1 if not set
162-
import os
163-
self.num_threads = int(os.getenv('OMP_NUM_THREADS', 1))
162+
os.environ['OMP_NUM_THREADS'] = str(self.num_threads)
164163

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

0 commit comments

Comments
 (0)