neat.MorphTree.distancesToSoma¶
-
MorphTree.
distancesToSoma
(locarg, recompute=False)[source]¶ Compute the distance of each location in a given set to the soma
- Parameters
locarg (list of locations or string) – if list of locations, specifies the locations, if str, specifies the name under which the set of location is stored that should be used to create the new tree
- Returns
np.array of float – the distances to the soma of the corresponding locations
recompute (bool (optional)) – whether or not to force recomputing the distances