Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit 35e48ce

Browse files
authored
Use coreneuron module from NEURON instead of pc.nrncore_run() (#370)
1 parent b034cf7 commit 35e48ce

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tests/jenkins/neuron_direct.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,18 @@
2727
tvstd = tv.cl()
2828
i_memstd = i_mem.cl()
2929

30+
from neuron import coreneuron
31+
coreneuron.enable = True
32+
coreneuron.verbose = 0
33+
3034
pc = h.ParallelContext()
35+
3136
h.stdinit()
32-
pc.nrncore_run("-e %g"%h.tstop, 0)
37+
pc.psolve(h.tstop)
38+
3339
# running second time for testing multiple executions
3440
h.stdinit()
35-
pc.nrncore_run("-e %g"%h.tstop, 0)
41+
pc.psolve(h.tstop)
3642

3743
if not bool(tv.eq(tvstd)):
3844
print("Voltage times are different")

0 commit comments

Comments
 (0)