radtools.Crystal.cell#
property
- property Crystal.cell#
Unit cell of the lattice.
- Returns:
- cell(3, 3) numpy.ndarray
Unit cell, rows are vectors, columns are coordinates.
Notes
In order to rotate the cell with an arbitrary rotation matrix \(R\) use the syntax:
rotated_cell = cell @ R.T
Transpose is required, since the vectors are stored as rows.