Playing vector into SEClamp
Posted: Mon Oct 28, 2013 3:26 pm
Hi,
I have not been successful in playing a vector into a SEClamp process using Python. Everything works fine when setting amp1-3 and dur1-3, but when I try to play a vector into amp1 it doesn't update it's value (if I don't set amp1 it stays 0; it also doesn't seem to care whether I set any amp and dur). I'm trying:
Any pointers in the right direction would be much appreciated.
Thanks,
Tiago
I have not been successful in playing a vector into a SEClamp process using Python. Everything works fine when setting amp1-3 and dur1-3, but when I try to play a vector into amp1 it doesn't update it's value (if I don't set amp1 it stays 0; it also doesn't seem to care whether I set any amp and dur). I'm trying:
Code: Select all
model.vclamp = h.SEClamp(model.soma(0.5))
cmd = h.Vector(-40 * np.ones(100))
cmd.play(model.vclamp.amp1)
# cmd.play(model.vclamp._ref_amp1, h.Vector(np.arange(0,100)) does the same thing
Thanks,
Tiago