get_lattice#
- libcasm.configuration.io.tools.get_lattice(
- obj: Lattice | Structure | Prim | Prim | Configuration | ConfigurationWithProperties,
Get lattice vectors from a lattice, structure, configuration, or prim
- Parameters:
obj (
CasmObjectWithLattice
) – A lattice, structure, configuration, or prim.- Returns:
lattice – The lattice vectors as columns (i.e.
a == lattice[:,0]
,b == lattice[:,1]
,c == lattice[:,2]
).- Return type:
np.ndarray[np.float64[3,3]]