single_cell_parsercellCelldistance_to_soma

Cell.distance_to_soma

single_cell_parser.cell.Cell.distance_to_soma(sec, x)

Computes the path length between the soma and a specified point.

The point is specified by its location x in the section sec, or by the point ID x and section ID sec.

Parameters:
  • sec (Section | int) – Section or section ID containing the point.

  • x (float | int) – Location or point ID of the point.

Returns:

The computed path length between the soma and the specified point.

Return type:

float