I want to model a gradual change in synaptic conductance due to changing in concentration of some neuromodulator. I have a list of connections. Each element of the list is a tuple of (NetCon, presynaptic index, postsynaptic indexes). Now I'm trying to use Vector.play, to change synaptic weight during a simulation. Here is the slightly simplified code:
Code: Select all
wmodT, wmodW = h.Vector(), h.Vector()
wmodT.from_python([500., 1500.])
wmodW.from_python([0.16e-2,0.16e-2*2.] )
for c,pre,post in connections:
wmodW.play(c._ref_weight[0],wmodT,1)
I want to run this code with
p-threads on desktop, but it returns an error:
Code: Select all
NEURON: We were unable to associate a PlayRecord item with a thread
near line 0
^
finitialize()
Traceback (most recent call last):
File "network.py", line 1529, in <module>
h.finitialize()
RuntimeError: hoc error
How I can work around this problem? I've tried to create multiple vectors for each NetCon, but it doesn't work too.
Thank you,
rth