Skip to content

Commit

Permalink
Use generic mod file loader
Browse files Browse the repository at this point in the history
  • Loading branch information
nrnhines committed Sep 20, 2024
1 parent da974c2 commit 3f213b0
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions test/hoctests/tests/test_many_ions.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# the neurondemo mod file shared library which will create the ca ion
# along with several mechanisms that write to cai.

from neuron import h
from neuron import h, load_mechanisms
from platform import machine
import sys

Expand Down Expand Up @@ -33,14 +33,11 @@ def exists(name):

# load neurondemo mod files. That will create ca_ion and provide two
# mod files that write cai
nrnmechlib = (
"nrnmech.dll" if sys.platform == "win32" else "%s/libnrnmech.so" % machine()
)
# Following Aborts prior to PR#3055 with
# eion.cpp:431: void nrn_check_conc_write(Prop*, Prop*, int): Assertion `k < sizeof(long) * 8' failed.
nrnmechlibname = "%s/demo/release/%s" % (h.neuronhome(), nrnmechlib)
print(nrnmechlibname)
assert h.nrn_load_dll(nrnmechlibname)
nrnmechlibpath = "%s/demo/release" % h.neuronhome()
print(nrnmechlibpath)
assert load_mechanisms(nrnmechlibpath)

# ca_ion now exists and has a mechanism index > nion
assert exists("ca_ion")
Expand Down

0 comments on commit 3f213b0

Please sign in to comment.