Section class
(Shortest import: from brian2 import Section)
- class brian2.spatialneuron.morphology.Section(**kwds)[source]
Bases:
Morphology
A section (unbranched structure), described as a sequence of truncated cones with potentially varying diameters and lengths per compartment.
Attributes
The membrane surface area of each compartment in this section.
The diameter at the middle of each compartment in this section.
The total distance between the midpoint of each compartment and the root of the morphology.
The diameter at the end of each compartment in this section.
The distance to the root of the morphology at the end of this section.
The x coordinate (as a unitless floating point number) at the end of each compartment.
The y coordinate (as a unitless floating point number) at the end of each compartment.
The z coordinate (as a unitless floating point number) at the end of each compartment.
The length of each compartment in this section.
The geometry-dependent term to calculate the conductance between the start and the midpoint of each compartment.
The geometry-dependent term to calculate the conductance between the midpoint and the end of each compartment.
The diameter at the start of each compartment in this section.
The x coordinate (as a unitless floating point number) at the beginning of each compartment.
The y coordinate (as a unitless floating point number) at the beginning of each compartment.
The z coordinate (as a unitless floating point number) at the beginning of each compartment.
The volume of each compartment in this section.
The x coordinate (as a unitless floating point number) at the midpoint of each compartment.
The y coordinate (as a unitless floating point number) at the midpoint of each compartment.
The z coordinate (as a unitless floating point number) at the midpoint of each compartment.
Methods
Create a copy of the current section (attributes of this section only, not re-creating the parent/children relation)
Details
- area
The membrane surface area of each compartment in this section. The surface area of each compartment is calculated as \(\frac{\pi}{2}(d_1 + d_2)\sqrt{\frac{(d_1 - d_2)^2}{4} + l^2)}\), where \(l\) is the length of the compartment, and \(d_1\) and \(d_2\) are the diameter at the start and end of the compartment, respectively. Note that this surface area does not contain the area of the two disks at the two sides of the truncated cone.
- diameter
The diameter at the middle of each compartment in this section.
- distance
The total distance between the midpoint of each compartment and the root of the morphology.
- end_diameter
The diameter at the end of each compartment in this section.
- end_distance
The distance to the root of the morphology at the end of this section.
- end_x_
The x coordinate (as a unitless floating point number) at the end of each compartment. Returns
None
for morphologies without coordinates.
- end_y_
The y coordinate (as a unitless floating point number) at the end of each compartment. Returns
None
for morphologies without coordinates.
- end_z_
The z coordinate (as a unitless floating point number) at the end of each compartment. Returns
None
for morphologies without coordinates.
- length
The length of each compartment in this section.
- r_length_1
The geometry-dependent term to calculate the conductance between the start and the midpoint of each compartment. Dividing this value by the Intracellular resistivity gives the conductance.
- r_length_2
The geometry-dependent term to calculate the conductance between the midpoint and the end of each compartment. Dividing this value by the Intracellular resistivity gives the conductance.
- start_diameter
The diameter at the start of each compartment in this section.
- start_x_
The x coordinate (as a unitless floating point number) at the beginning of each compartment. Returns
None
for morphologies without coordinates.
- start_y_
The y coordinate (as a unitless floating point number) at the beginning of each compartment. Returns
None
for morphologies without coordinates.
- start_z_
The z coordinate (as a unitless floating point number) at the beginning of each compartment. Returns
None
for morphologies without coordinates.
- volume
The volume of each compartment in this section. The volume of each compartment is calculated as \(\frac{\pi}{12} l (d_1^2 + d_1 d_2 + d_2^2)\), where \(l\) is the length of the compartment, and \(d_1\) and \(d_2\) are the diameter at the start and end of the compartment, respectively.
- x_
The x coordinate (as a unitless floating point number) at the midpoint of each compartment. Returns
None
for morphologies without coordinates.
- y_
The y coordinate (as a unitless floating point number) at the midpoint of each compartment. Returns
None
for morphologies without coordinates.
- z_
The z coordinate (as a unitless floating point number) at the midpoint of each compartment. Returns
None
for morphologies without coordinates.