as_lattice#

libcasm.configuration.io.spglib.as_lattice(
obj: Lattice | Structure | Prim | Prim | Configuration | ConfigurationWithProperties,
)[source]#

Get spglib lattice vectors from a lattice, structure, configuration, or prim

Parameters:

obj (CasmObjectWithLattice) – A lattice, structure, configuration, or prim.

Returns:

lattice – The lattice vectors as rows (i.e. a == lattice[0], b == lattice[1], c == lattice[2]).

Return type:

list[list[float]]