neat.MorphTree.get_leaf_loc_idxs

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

Find the indices in the location list specified stored under name 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