NetCon

Moderator: wwlytton

Post Reply
alessandra

NetCon

Post by alessandra »

Hello,

I would like to pass as an argument of a function the name of a section to
be used as source in a NetCon().
Something like:

func(”soma[1]”, 2,3,4)

proc func() {
net = new NetCon(&$1.v, ...)
}

I have tried different combinations using sprint() to build the right string
but without success.

Any suggestion?

Thank you

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

Re: NetCon

Post by ted »

alessandra wrote:I would like to pass as an argument of a function the name of a section to
be used as source in a NetCon(). . . .
Any suggestion?
The programming effort outweighs the potential benefit. Also, the resulting code will not be particularly efficient, and will not scale well as model size increases. If you're merely connecting a few spike sources (individual sections or artificial spiking cells) to targets with NetCons, the clearest and most concise way to proceed is to just create the new NetCons directly. If you're interested in modeling a network that has many connections, the individual cells will be instances of classes that were created as objrefs, which are easily passed as arguments. In that case, you'll probably be using Lists to manage collections of many cells and many NetCons, as in the examples in this paper
Hines, M.L. and Carnevale, N.T.
Translating network models to parallel hardware in NEURON.
J. Neurosci. Methods 169:425-455, 2008
and the corresponding source code in ModelDB entry 96444.
Post Reply