vibeqc.kpath_from_segments¶
- vibeqc.kpath_from_segments(system, segments, *, points_per_segment=30)[source]¶
Stitch a piecewise-linear k-path through high-symmetry points.
segmentsis a list of(start_frac, start_label, end_frac, end_label)tuples. Adjacent segments may share an endpoint — e.g. for a path Γ → X → M → Γ, three segments share their successive endpoints.Returned
KPathcarries Cartesian k-points (bohr⁻¹), the matching fractional coordinates, the cumulative arc length along the path (used as the x-coordinate when plotting), and the (distance, label) tick marks for high-symmetry points.points_per_segmentcontrols the resolution of each leg.