find_target_atom

sknano.utils.analysis.find_target_atom(atoms, target_coords=None, search_radius=1.0, nearest_target=False, max_search_radius=None)[source] [edit on github][source]

Search for atom closest to target location.

Parameters:
  • atoms (Atoms) – An Atoms instance.
  • target_coords (array_like) – An array or list of \(x,y,z\) coordinates
  • search_radius (float, optional) – Search radius
  • nearest_target (bool, optional) –
  • max_search_radius (float, optional) –
Returns:

target_atom – An Atom instance.

Return type:

Atom