distance_to_soma

singlecell_input_mapper.udvary2022.cell.Cell.distance_to_soma(sec, x)

Calculate the path length to soma from location x on section sec

Parameters:
sec : PySection2

Section object.

x : float

Relative position along the section (0-1).

Returns:

Path length to soma in micrometer.

Return type:

float