LinearInterpolator¶
- class ifermi.interpolate.LinearInterpolator(kpoints, data)[source]¶
Bases:
object
Class to perform linear interpolation of periodic properties.
- Parameters:
kpoints (
ndarray
) – The k-points in fractional coordinates as a numpy array. with the shape (nkpoints, 3). Note, the k-points must cover the full Brillouin zone, not just the irreducible part.data (
dict
[Spin
,ndarray
]) – The data to interpolate. Should be given for spin up and spin down bands. If the system is not spin polarized then only spin up should be set. The data for each spin channel should be a numpy array with the shape (nbands, nkpoints, …). The values to interpolate can be scalar or multidimensional.