connect and currently accessed section

The basics of how to develop, test, and use models.
Post Reply
ted
Site Admin
Posts: 6300
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

connect and currently accessed section

Post by ted »

On 6/2/2005 xianghong yang <xyang3@utmem.edu> wrote:
> The classic connect command from the tutorial is --
>
> connect dendrite[1](0), soma(1)
>
> while a CA1 pyramidal neuron model is different --
>
> soma[0] {connect soma[1] (0), 1
> connect basal[0] (0),0
> connect basal[20] (0),0
> connect basal[23] (0),0
> connect basal[41] (0),0}
>
> Is that a simplified way to connect soma[0] to multiple compartments?

Good question.

Code: Select all

sectionname {
  statement1
  statement2
  . . .
}
causes

Code: Select all

statement1
statement2
  . . .
to be executed with sectionname as the currently accessed section.

So the sections named inside the curly brackets { } will be attached
as children to the parent section soma[0].

Read about currently accessed section in the programmer's reference.
http://www.neuron.yale.edu/neuron/stati ... sedSection

Read about connect in the programmer's reference.
http://www.neuron.yale.edu/neuron/stati ... ml#connect

> What does the 1 or 0 after the comma mean?

The location on the parent section to which the child section will be attached. See
http://www.neuron.yale.edu/neuron/stati ... ml#connect
Post Reply