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

Commit 1363f71

Browse files
author
Jaquier Aurélien Tristan
committed
fix stimuli test
1 parent 306c905 commit 1363f71

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

bluepyopt/tests/test_ephys/test_stimuli.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def test_LFPySquarePulse_instantiate():
250250

251251
lfpy_sim = ephys.simulators.LFPySimulator()
252252
dummy_cell = dummycells.DummyLFPyCellModel1()
253-
_, lfpycell = dummy_cell.instantiate(sim=lfpy_sim)
253+
_, lfpy_cell = dummy_cell.instantiate(sim=lfpy_sim)
254254

255255
soma_loc = ephys.locations.NrnSeclistCompLocation(
256256
name=None,
@@ -266,8 +266,12 @@ def test_LFPySquarePulse_instantiate():
266266
total_duration=300
267267
)
268268

269-
stim.instantiate(sim=lfpy_sim, lfpy_cell=lfpycell)
270-
lfpy_sim.run(stim.total_duration)
269+
stim.instantiate(sim=lfpy_sim, lfpy_cell=lfpy_cell)
270+
lfpy_sim.run(
271+
lfpy_cell=lfpy_cell,
272+
lfpy_electrode=dummy_cell.lfpy_electrode,
273+
tstop=stim.total_duration
274+
)
271275

272276
stim.destroy(sim=lfpy_sim)
273277
dummy_cell.destroy(sim=lfpy_sim)

0 commit comments

Comments
 (0)