standardize_cell#
- abtem.atoms.standardize_cell(atoms, tol=1e-12)[source]#
Standardize the cell of given atoms. The atoms are rotated so that one of the lattice vectors in the xy-plane is aligned with the x-axis, and then all the lattice vectors are made positive.
- Parameters:
atoms (ase.Atoms) – The atoms that should be standardized.
tol (float) – Components of the lattice vectors whose magnitude is below this value are considered to be zero.
- Returns:
atoms – The standardized atoms.
- Return type:
ase.Atoms