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 » Wed May 13, 2015 2:07 pm

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: 5372
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 » Fri May 15, 2015 5:47 pm

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 » Mon May 18, 2015 10:10 pm

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

Post Reply