neat.MorphTree.getLeafLocinds

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

Find the indices in the desire location list that are ‘leafs’, i.e. locations for which no other location exist that is farther from the root

Parameters
  • name (string) – name of the desired set of locations

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

Returns

the indices of the ‘leaf’ locations

Return type

list of inds