wrap_with_tolerance

wrap_with_tolerance#

abtem.atoms.wrap_with_tolerance(atoms, tol=1e-06)[source]#

Wrap atoms that are closer to cell boundaries than the given tolerance.

Parameters:
  • atoms (ase.Atoms) – Atoms to be wrapped.

  • tol (float) – Minimum distance to any cell boundary.

Returns:

atoms – Wrapped atoms.

Return type:

ase.Atoms