best_orthogonal_cell

best_orthogonal_cell#

abtem.atoms.best_orthogonal_cell(cell, max_repetitions=5, eps=1e-12)[source]#

Find the closest orthogonal cell for a given cell given a maximum number of repetitions in all directions.

Parameters:
  • cell (np.ndarray) – Cell of dimensions 3x3.

  • max_repetitions (int) – Maximum number of allowed repetitions (default is 5).

  • eps (float) – Lattice vector components below this value are considered to be zero.

Returns:

cell – Closest orthogonal cell found.

Return type:

np.ndarray