Better conductance input idiom?
Posted: Fri Aug 22, 2008 1:50 pm
Is there a better way to play a specified conductance input than what I'm doing below?
Code: Select all
# create an SEClamp object which is accessible in both python and NEURON
soma.push()
h('objref estim')
h('estim = new SEClamp(0.5)')
h.pop_section()
estim = h.estim
# Create a stimulus Vector
rs_exc = neuron.Vector(1000.0/g_exc)
#This is not possbile:
#rs_exc.play(estim,'rs')
#So I have to do this:
h('%s.play(&estim.rs,0.1)'%rs_exc.name)