is_cell_valid#
- abtem.atoms.is_cell_valid(atoms, tol=1e-12)[source]#
Check whether the cell of given atoms can be converted to a structure usable by abTEM.
- Parameters:
atoms (ase.Atoms) – The atoms that should be checked.
tol (float) – Components of the lattice vectors whose magnitude is below this value are considered to be zero.
- Returns:
valid – True if the atomic structure is usable by abTEM.
- Return type:
bool