Cell.distance_between_pts¶
- single_cell_parser.cell.Cell.distance_between_pts(sec1, x1, sec2, x2)¶
Computes the path length between two points.
Points are specified by either their locations, or by point IDs and section IDs.
Currently, this function uses the built-in NEURON method
distanceto compute the distances. Note that this approach may be inefficient for large numbers of synapses due to repeated computations. Additionally, the computed distances are approximate since NEURON calculates distances between the centers of segments.Future improvements could include implementing a look-up table for pair-wise distances to enhance efficiency.
Documentation unclear, incomplete, broken or wrong? Let us know