stko.get_from_parameters

stko.get_from_parameters(a, b, c, alpha, beta, gamma)[source]

Create a Lattice using unit cell lengths and angles (in degrees).

This code is modified from the pymatgen source code [1].

Parameters:
  • a (float) – a lattice parameter.

  • b (float) – b lattice parameter.

  • c (float) – c lattice parameter.

  • alpha (float) – alpha angle in degrees.

  • beta (float) – beta angle in degrees.

  • gamma (float) – gamma angle in degrees.

Returns:

Tuple of cell lattice vectors of shape (3, ) in Angstrom.

Return type:

tuple[ndarray, …]

References