kpoints_from_bandstructure¶
- ifermi.kpoints.kpoints_from_bandstructure(bandstructure, cartesian=False)[source]¶
Extract the k-points from a band structure.
- Parameters:
bandstructure (
BandStructure
) – A band structure object.cartesian (
bool
) – Whether to return the k-points in cartesian coordinates.
- Return type:
- Returns:
A (n, 3) float array of the k-points.