neat.MorphTree.distancesToBifurcation

MorphTree.distancesToBifurcation(name, recompute=False)[source]

Compute the distance of each location to the nearest bifurcation in the ‘up’ direction (towards root)

Parameters
  • name (str) – name of the set of locations

  • recompute (bool (optional, default False)) – whether or not to force recomputing the distances

Returns

the distances to the nearest bifurcation of the corresponding locations

Return type

np.array of floats