sort_boltztrap_to_spglib

ifermi.kpoints.sort_boltztrap_to_spglib(kpoints)[source]

Get an index array that sorts the k-points from BoltzTraP2 to the spglib order.

Parameters:

kpoints (ndarray) – A (n, 3) float array of the k-points in fractional coordinates.

Return type:

ndarray

Returns:

A (n, ) int array of the sort order.