neat.MorphTree.path_length¶
- MorphTree.path_length(loc1, loc2, compute_radius=0)[source]¶
Find the length of the direct path between loc1 and loc2
- Parameters:
loc1 (dict, tuple or neat.MorphLoc) – one location
loc2 (dict, tuple or neat.MorphLoc) – other location
compute_radius (bool) – if True, also computes the average weighted radius of the path
- Returns:
- L: float
length of path, in micron
- R: float
weighted average radius of path, in micron
- Return type:
L, R (optional)