Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

Commit 8e67374

Browse files
author
Tanguy Damart
committed
Fix bug when starting from a number centroids different from lambda in CMA
1 parent 635890f commit 8e67374

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bluepyopt/deapext/CMA_MO.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def __init__(
104104
from itertools import cycle
105105

106106
generator = cycle(centroids)
107-
starters = [next(generator) for i in range(lambda_)]
107+
starters = [numpy.copy(next(generator)) for i in range(lambda_)]
108108
else:
109109
starters = centroids
110110

0 commit comments

Comments
 (0)