flip_atoms

Contents

flip_atoms#

abtem.atoms.flip_atoms(atoms, axis=2)[source]#

Inverts the positions of atoms along a given axis.

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

  • axis (int) – Integer representing the Cartesian axis (0 is x, 1 is y, and the default 2 is z).

Returns:

atoms – Inverted atoms.

Return type:

ase.Atoms