Skip to content

Commit 3e70ba6

Browse files
committed
wrap starmapper call in a list() to ensure it finishes
1 parent be9f1ce commit 3e70ba6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymoo/model/problem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ def func(_x):
368368
params = [[X[k], calc_gradient, self._evaluate, args, kwargs] for k in range(len(X))]
369369

370370
starmapper = _params[0]
371-
ret = starmapper(evaluate_in_parallel, params)
371+
ret = list(starmapper(evaluate_in_parallel, params))
372372

373373
elif _type == "threads":
374374

0 commit comments

Comments
 (0)