I have a really simple question, I'm trying to save the synapse event times from a netcon object, but I keep getting an empty list.
I'm wondering if this is a problem related to parallel context? It should be a simple issue... The python code is before, there's a NetStim setup to hold a randomstream of times, and then a NetCon.
Any help is appreciated.
Catubc
Code: Select all
for syn in syns_rnd:
ns = h.NetStim(0.5) #Setup netstim
rs = tarcell.getRandStreamExp1(); # similar to the above but without using tempates
ns.noiseFromRandom(rs)
ns.interval = ISI # mean ISI (ms)
ns.number = int(10*params.sim['t_stop']/ISI)
ns.noise = 1.0; ns.start = 0.0
self.netstims.append(ns)
nc = h.NetCon(ns, syn)
nc.weight[0] = syn_weight # mean synaptic conductance in uS (for Exp2Syn).
nc.delay = ncdelay
tarcell.netcons.append(nc)
tvec = nc.get_recordvec()
print tvec