tightbinder.optimize.read_bands_from_file#

read_bands_from_file(filename)[source]#

Routine to read some bands from a file.

Parameters:

filename (str) – Route to file relative to current working directory.

Return type:

Tuple[ndarray, ndarray]

Returns:

Array (nk, 3) with the kpoints, and matrix (n, nk) with the energy bands.