radtools.standardize_cell#
- radtools.standardize_cell(cell, correct_lattice_type, rtol=0.0001, atol=1e-08)[source]#
Analyse arbitrary cell and redefine it if required to ensure the unique choice of lattice vectors.
See docs for each Bravais lattice for the details.
- Parameters:
- cell(3,3) numpy.ndarray
Primitive unit cell.
- rtolfloat, default
REL_TOL Relative tolerance for numerical comparison.
- atolfloat, default
ABS_TOL Absolute tolerance for numerical comparison.
- correct_lattice_typestr
Correct lattice type.
- Returns:
- cell(3,3) numpy.ndarray
Primitive unit cell.