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

Commit 3206e0d

Browse files
author
Jaquier Aurélien Tristan
committed
improve lfpy evaluator example
1 parent cc39eef commit 3206e0d

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

bluepyopt/tests/test_lfpy.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ def test_lfpy_evaluator():
2525
evaluator = l5pc_lfpy_evaluator.create(
2626
feature_file=L5PC_LFPY_PATH + "/extra_features.json",
2727
cvode_active=False,
28+
dt=0.025,
2829
)
2930

3031
responses = evaluator.run_protocols(

examples/l5pc_lfpy/l5pc_lfpy_evaluator.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def define_fitness_calculator(protocols, feature_file):
135135
return ephys.objectivescalculators.ObjectivesCalculator(objectives)
136136

137137

138-
def create(feature_file="extra_features.json", cvode_active=True):
138+
def create(feature_file="extra_features.json", cvode_active=True, dt=None):
139139
"""Setup"""
140140

141141
l5pc_cell = l5pc_lfpy_model.create()
@@ -147,9 +147,6 @@ def create(feature_file="extra_features.json", cvode_active=True):
147147
param.name for param in l5pc_cell.params.values() if not param.frozen
148148
]
149149

150-
dt=None
151-
if cvode_active is False:
152-
dt=0.025
153150
lfpy_sim = ephys.simulators.LFPySimulator(cvode_active=cvode_active, dt=dt)
154151

155152
return ephys.evaluators.CellEvaluator(

0 commit comments

Comments
 (0)