sknano.core.crystallography.HexagonalClosePackedStructure.from_spacegroup

HexagonalClosePackedStructure.from_spacegroup(sg, lattice=None, basis=None, coords=None, **kwargs)[source]

Return a Crystal3DStructure from a spacegroup number/symbol.

Parameters:

sg : int or str

lattice : Crystal3DLattice

basis : list of strs

coords : list of floats

Returns:

Crystal3DStructure

Notes

Under the hood this method generates a pymatgen.core.Structure