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

Commit 0085cb5

Browse files
author
Jaquier Aurélien Tristan
committed
set neuron dt before ipyp process run in CMA
1 parent 6b92e56 commit 0085cb5

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

bluepyopt/deapext/optimisationsCMA.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,10 @@ def setup_deap(self):
211211
)
212212

213213
# Register the evaluation function for the individuals
214-
self.toolbox.register("evaluate", self.evaluator.evaluate_with_lists)
214+
self.toolbox.register(
215+
"evaluate",
216+
self.evaluator.set_neuron_variables_and_evaluate_with_lists
217+
)
215218

216219
import copyreg
217220
import types

bluepyopt/ephys/evaluators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ def set_neuron_variables_and_evaluate_with_lists(
224224
Setting the neuron variables is necessary when using ipyparallel,
225225
since the new subprocesses have pristine neuron.
226226
"""
227-
# self.sim.set_neuron_variables()
227+
self.sim.set_neuron_variables()
228228
return self.evaluate_with_lists(param_list=param_list, target=target)
229229

230230
def evaluate(self, param_list=None, target='scores'):

0 commit comments

Comments
 (0)