Recording synapse times for random input - parallel context

General issues of interest both for network and
individual cell parallelization.

Moderator: hines

Post Reply
catubc
Posts: 21
Joined: Mon Apr 07, 2014 6:46 pm

Recording synapse times for random input - parallel context

Post 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.
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

ted
Site Admin
Posts: 6289
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Re: Recording synapse times for random input - parallel cont

Post 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
http://neuron.yale.edu/neuron/static/do ... index.html
especially the part that involves making a toy network and recording spikes
http://neuron.yale.edu/neuron/static/do ... tick3.html
This particular documentation is being actively revised (suggestions always welcome!), but it's good enough to provide some useful examples.
catubc
Posts: 21
Joined: Mon Apr 07, 2014 6:46 pm

Re: Recording synapse times for random input - parallel cont

Post by catubc »

Thanks Ted, I'll take a quick look. I have never looked at this stuff...
Post Reply