shrink_cell

Contents

shrink_cell#

abtem.atoms.shrink_cell(atoms, repetitions=(2, 3), tol=1e-06)[source]#

Find and return the smallest non-repeating cell for the given atoms.

Parameters:
  • atoms (ase.Atoms) – Atoms whose repetition is to be removed.

  • repetitions (tuple) – Integer number of repetitions in x and y directions to be checked.

  • tol (float) – Repetitions with a mismatch smaller than this value are considered to be repeated.

Returns:

atoms – Smallest non-repeating cell for the given atoms.

Return type:

ase.Atoms