merge_close_atoms#
- abtem.atoms.merge_close_atoms(atoms, tol=1e-07)[source]#
Merge atoms that are closer in distance to each other than the given tolerance.
- Parameters:
atoms (ase.Atoms) – Atoms to merge.
tol (float) – Atoms closer to each other than this value are merged if they have identical atomic numbers.
- Returns:
merged_atoms – Merged atoms.
- Return type:
ase.Atoms