neat.MorphTree.get_nearest_neighbour_loc_idxs

MorphTree.get_nearest_neighbour_loc_idxs(loc, loc_arg)[source]

Search nearest neighbours to loc in loc_arg.

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

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

Returns:

Indices of nearest neighbours of loc in loc_arg

Return type:

list of ints