I have been initializing hoc objects, loading in NMODL mechanisms and inserting the mechanisms semi-successfully using the lines:
Code: Select all
os.system('/usr/local/nrn/i686/bin/nrnivmodl')
h=hoc.HocObject()
h.nrn_load_dll("/home/gartland/rgc/i686/.libs/libnrnmech.so")
h('create soma')
h('access soma')
h('insert spike')
h('ena_spike=40')
Code: Select all
soma=Section()
soma.push()
soma.insert('pas')
soma(0.5).pas.e=-80
Code: Select all
soma.insert('spike')
soma(0.5).spike.ena=40
It seems like maybe the mechanisms added with load_dll aren't visible to the insert command accessed with python dot notation? I also get similar errors when I try to do:argument not a density mechanism name
Code: Select all
h('insert spike')
soma(0.5).spike.ena=40
-Andrew