I am trying to plot voltage clamp currents of multiple channels for different mod files. For this I use Vector.record(). As there as multiple channels, I am passing a string to Vector.record(). As a test case, I tried it with hh channels. 'hh2' is same as hh with ik made a RANGE variable.
Code: Select all
channelname='hh2'
ionname='k'
strname = 'soma(0.5)._ref_'+'i'+ionname+'_'+channelname
Code: Select all
'soma(0.5)._ref_ik_hh2'
Code: Select all
NEURON: interpreter stack type error
near line 0
^
Vector[21].record("soma(0.5)....")
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
<ipython-input-12-21c21e1f2cbf> in <module>
17 t_vec.record(h._ref_t)
18 ik_vec = h.Vector()
---> 19 ik_vec.record(strname)
20
21 h.run()
RuntimeError: hoc error
Thanks,
Darshan