select_bands

FermiSurface.select_bands(band_indices: tuple[tuple[int, int], tuple[int, int]] | None = None)[source]

Select specific bands for plotting based on band indices.

Parameters:

band_indices (tuple of tuples of int, optional) – Band indices for each spin channel. Format: ((band_indices_spin0,), (band_indices_spin1,)). If None, uses all available bands, by default None.

Returns:

dict – Dictionary containing selected bands data with keys: - ‘bands’: List of band arrays for each spin - ‘spd’: List of spin-projected density arrays for each spin - ‘band_labels’: List of unique band labels for each spin