perturbopy.postproc.utils.lattice.find_point

perturbopy.postproc.utils.lattice.find_point(point, point_array, max_dist=0.025, nearest=True)

Method to find the index or indices of a particular point in an array of points.

Parameters:
  • point (array_like) – The point to be located in an array of points

  • point_array (array_like) – The set of points that will be searched through

  • max_dist (float, optional) – The maximum distance between the point to locate and the points identified as matches

  • narest (bool, optional) – If True, only the nearest point, or points in the case of duplicate points, are returned (even if other points are within the max_dist)

Returns:

points_indices – The index or indices of the matching points in point_array

Return type:

list