# SubMorphology class

(Shortest import: `from brian2.spatialneuron.morphology import SubMorphology)`

class brian2.spatialneuron.morphology.SubMorphology(morphology, i, j)

  Bases: `object`

  A view on a subset of a section in a morphology.

  Attributes

  `area` | The membrane surface area of each compartment in this sub-section.
  `diameter` | The diameter at the middle of each compartment in this sub-section.
  `distance` | The total distance between the midpoint of each compartment in this sub-section and the root of the morphology.
  `end_x` | The x coordinate at the end of each compartment in this sub-section.
  `end_x_` | The x coordinate (as a unitless floating point number) at the end of each compartment in this sub-section.
  `end_y` | The y coordinate at the end of each compartment in this sub-section.
  `end_y_` | The y coordinate (as a unitless floating point number) at the end of each compartment in this sub-section.
  `end_z` | The z coordinate at the end of each compartment in this sub-section.
  `end_z_` | The z coordinate (as a unitless floating point number) at the end of each compartment in this sub-section.
  `length` | The length of each compartment in this sub-section.
  `n` | The number of compartments in this sub-section.
  `n_sections` | The number of sections in this sub-section (always 1).
  `r_length_1` | The geometry-dependent term to calculate the conductance between the start and the midpoint of each compartment in this sub-section.
  `r_length_2` | The geometry-dependent term to calculate the conductance between the midpoint and the end of each compartment in this sub-section.
  `start_x` | The x coordinate at the beginning of each compartment in this sub-section.
  `start_x_` | The x coordinate (as a unitless floating point number) at the beginning of each compartment in this sub-section.
  `start_y` | The y coordinate at the beginning of each compartment in this sub-section.
  `start_y_` | The y coordinate (as a unitless floating point number) at the beginning of each compartment in this sub-section.
  `start_z` | The x coordinate at the beginning of each compartment in this sub-section.
  `start_z_` | The z coordinate (as a unitless floating point number) at the beginning of each compartment in this sub-section.
  `volume` | The volume of each compartment in this sub-section.
  `x` | The x coordinate at the midpoint of each compartment in this sub-section.
  `x_` | The x coordinate (as a unitless floating point number) at the midpoint of each compartment in this sub-section.
  `y` | The y coordinate at the midpoint of each compartment in this sub-section.
  `y_` | The y coordinate (as a unitless floating point number) at the midpoint of each compartment in this sub-section.
  `z` | The z coordinate at the midpoint of each compartment in this sub-section.
  `z_` | The z coordinate (as a unitless floating point number) at the midpoint of each compartment in this sub-section.

  Details

  area

    The membrane surface area of each compartment in this sub-section.

  diameter

    The diameter at the middle of each compartment in this sub-section.

  distance

    The total distance between the midpoint of each compartment in this sub-section and the root of the morphology.

  end_x

    The x coordinate at the end of each compartment in this sub-section. Returns `None` for morphologies without coordinates.

  end_x_

    The x coordinate (as a unitless floating point number) at the end of each compartment in this sub-section. Returns `None` for morphologies without coordinates.

  end_y

    The y coordinate at the end of each compartment in this sub-section. Returns `None` for morphologies without coordinates.

  end_y_

    The y coordinate (as a unitless floating point number) at the end of each compartment in this sub-section. Returns `None` for morphologies without coordinates.

  end_z

    The z coordinate at the end of each compartment in this sub-section. Returns `None` for morphologies without coordinates.

  end_z_

    The z coordinate (as a unitless floating point number) at the end of each compartment in this sub-section. Returns `None` for morphologies without coordinates.

  length

    The length of each compartment in this sub-section.

  n

    The number of compartments in this sub-section.

  n_sections

    The number of sections in this sub-section (always 1).

  r_length_1

    The geometry-dependent term to calculate the conductance between the start and the midpoint of each compartment in this sub-section. 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 in this sub-section. Dividing this value by the Intracellular resistivity gives the conductance.

  start_x

    The x coordinate at the beginning of each compartment in this sub-section. Returns `None` for morphologies without coordinates.

  start_x_

    The x coordinate (as a unitless floating point number) at the beginning of each compartment in this sub-section. Returns `None` for morphologies without coordinates.

  start_y

    The y coordinate at the beginning of each compartment in this sub-section. Returns `None` for morphologies without coordinates.

  start_y_

    The y coordinate (as a unitless floating point number) at the beginning of each compartment in this sub-section. Returns `None` for morphologies without coordinates.

  start_z

    The x coordinate at the beginning of each compartment in this sub-section. Returns `None` for morphologies without coordinates.

  start_z_

    The z coordinate (as a unitless floating point number) at the beginning of each compartment in this sub-section. Returns `None` for morphologies without coordinates.

  volume

    The volume of each compartment in this sub-section.

  x

    The x coordinate at the midpoint of each compartment in this sub-section. Returns `None` for morphologies without coordinates.

  x_

    The x coordinate (as a unitless floating point number) at the midpoint of each compartment in this sub-section. Returns `None` for morphologies without coordinates.

  y

    The y coordinate at the midpoint of each compartment in this sub-section. Returns `None` for morphologies without coordinates.

  y_

    The y coordinate (as a unitless floating point number) at the midpoint of each compartment in this sub-section. Returns `None` for morphologies without coordinates.

  z

    The z coordinate at the midpoint of each compartment in this sub-section. Returns `None` for morphologies without coordinates.

  z_

    The z coordinate (as a unitless floating point number) at the midpoint of each compartment in this sub-section. Returns `None` for morphologies without coordinates.