suny-downstate-medical-center / netpyne

A Python package to facilitate the development, parallel simulation, optimization and analysis of multiscale biological neuronal networks in NEURON.
http://www.netpyne.org
MIT License
148 stars 138 forks source link

'xnorm' and 'connList' conflict with each other #287

Closed ghost closed 6 years ago

ghost commented 6 years ago

I have created a network with circular shape. I created it by passing a list of cell (each one with its own x,y,x position) to "popParams". I conditioned into the "connParams" the cells that will be allowed to connect (using "connList" )as shown in the figure below: conn_with_connlist This is the list of connections: connlist = [[0, 0],[0,2],[0,4],[0,6],[0,8]]

But then, if I also force a condition in 'xnorm' : [0,1], I get this figure: conn_with_connlist_and_xnorm

Somehow, the connList is not been taking into account

salvadord commented 6 years ago

@frodriguez4600 Note that the indices specified in connList are relative to the subpopulation resulting from the conditions -- so if you apply and additional condition (such as xnorm: [0,1]) the indices in connList won't match the original ones, i.e. only the cells matching the conds are considered. let me know if that makes sense

rodriguez-facundo commented 6 years ago

Yeah, that's true. Thanks Salva