pyprocar.core.KPath¶
- class pyprocar.core.KPath(kpoints: ndarray | None = None, n_grids: List[int] | None = None, segment_names: List[Tuple[str, str]] | None = None, tick_name_map: Dict[int, str] | None = None, reciprocal_lattice=None, discontinuity_threshold=0.2, zero_diff_threshold=1e-06, as_latex=True)[source]¶
Methods
KPath.__init__([kpoints, n_grids, ...])The Kpath object to handle labels and ticks for band structure
Generate the kpath points
KPath.get_distances([isegments, ...])A method to get the transformed kpoints
A method to get the optimized kpoints after a transformation
KPath.get_segments([isegments, cartesian])KPath.get_special_kpoint_names([segment_names])KPath.get_special_kpoints([as_segments, ...])KPath.plot([add_point_labels_args, ...])Plots the band structure.
KPath.write_to_file([filename, fmt])Write the kpath to a file.
Attributes
The number of band segments
The list of tick names