Page 1 of 1

Recording synapse times for random input - parallel context

Posted: Wed May 13, 2015 2:07 pm
by catubc
Dear all

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.

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.interval = ISI        # mean ISI (ms)
                        ns.number = int(10*params.sim['t_stop']/ISI) 
                        ns.noise = 1.0; ns.start = 0.0
                        nc = h.NetCon(ns, syn)
                        nc.weight[0] = syn_weight      # mean synaptic conductance in uS (for Exp2Syn).
                        nc.delay = ncdelay
                        tvec = nc.get_recordvec()
                        print tvec

Re: Recording synapse times for random input - parallel cont

Posted: Fri May 15, 2015 5:47 pm
by ted
The code excerpt creates a NetCon and uses it to convey events from a spike source (NetStim) to a target synaptic mechanism. But it doesn't create a NetCon that is used to record events to a Vector. Assuming you haven't already fixed the problem, or even if you have, it might be helpful to look at this ... index.html
especially the part that involves making a toy network and recording spikes ... tick3.html
This particular documentation is being actively revised (suggestions always welcome!), but it's good enough to provide some useful examples.

Re: Recording synapse times for random input - parallel cont

Posted: Mon May 18, 2015 10:10 pm
by catubc
Thanks Ted, I'll take a quick look. I have never looked at this stuff...