neat.MorphTree.getNearestNeighbourLocinds

MorphTree.getNearestNeighbourLocinds(loc, locarg)[source]

Search nearest neighbours to loc in locarg.

Parameters
  • loc (tuple, dict or neat.MorphLoc) – The locations for which nearest neighbours have to be found

  • locarg (str or list of locs) – See documentation of MorphTree._parseLocArg, the set of locations within which to look for nearest neighbours

Returns

Indices of nearest neighbours of loc in locarg

Return type

list of ints