From 8e1665a65c2f0eb6209d53cc3c45adcb47a68734 Mon Sep 17 00:00:00 2001 From: Artur Date: Thu, 15 Aug 2019 14:12:32 -0300 Subject: [PATCH] fixed n_jobs typo --- psopt/commons/optimizer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/psopt/commons/optimizer.py b/psopt/commons/optimizer.py index f576b61..92e72ed 100644 --- a/psopt/commons/optimizer.py +++ b/psopt/commons/optimizer.py @@ -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()