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

Commit 6880431

Browse files
author
damart
committed
Fix bug pop not defined when restarting CMA
1 parent ef41208 commit 6880431

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bluepyopt/deapext/optimisationsCMA.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,9 +249,10 @@ def run(self,
249249
fitness = self.toolbox.map(self.toolbox.evaluate, to_evaluate)
250250
fitness = list(map(list, fitness))
251251
CMA_es.set_fitness_parents(fitness)
252-
253252
gen = 1
254253

254+
pop = CMA_es.get_population(self.to_space)
255+
255256
# Run until a termination criteria is met
256257
while CMA_es.active:
257258
logger.info("Generation {}".format(gen))

0 commit comments

Comments
 (0)