Skip to content

Commit

Permalink
fixed n_jobs typo
Browse files Browse the repository at this point in the history
  • Loading branch information
artur-deluca committed Aug 15, 2019
1 parent b359234 commit 8e1665a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion psopt/commons/optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def minimize(
def _optimize(self):

start = time.time()
if self._n_jobs > 1:
if not self._n_jobs or self._n_jobs > 1:
pool = multiprocess.Pool(self._n_jobs)
else:
pool = MockPool()
Expand Down

0 comments on commit 8e1665a

Please sign in to comment.