Skip to content
Snippets Groups Projects
Commit 494efe63 authored by Johanna Zijderveld's avatar Johanna Zijderveld
Browse files

forgotten rename

parent 1c0ad401
No related branches found
No related tags found
1 merge request!4Interface refactoring
...@@ -86,7 +86,7 @@ def ifftn_to_tb(ifft_array): ...@@ -86,7 +86,7 @@ def ifftn_to_tb(ifft_array):
return {tuple(k): ifft_array[tuple(k)] for k in keys} return {tuple(k): ifft_array[tuple(k)] for k in keys}
def kfunc_to_kham(nk, hk, dim, return_ks=False, hermitian=True): def kfunc_to_kham(nk, kfunc, dim, return_ks=False, hermitian=True):
""" """
Evaluates Hamiltonian on a k-point grid. Evaluates Hamiltonian on a k-point grid.
...@@ -94,7 +94,7 @@ def kfunc_to_kham(nk, hk, dim, return_ks=False, hermitian=True): ...@@ -94,7 +94,7 @@ def kfunc_to_kham(nk, hk, dim, return_ks=False, hermitian=True):
---------- ----------
nk : int nk : int
Number of k-points along each direction. Number of k-points along each direction.
hk : function kfunc : function
Calculates the Hamiltonian at a given k-point. Calculates the Hamiltonian at a given k-point.
return_ks : bool return_ks : bool
If `True`, returns k-points. If `True`, returns k-points.
...@@ -119,7 +119,7 @@ def kfunc_to_kham(nk, hk, dim, return_ks=False, hermitian=True): ...@@ -119,7 +119,7 @@ def kfunc_to_kham(nk, hk, dim, return_ks=False, hermitian=True):
kham = [] kham = []
for k in it.product(*k_pts): for k in it.product(*k_pts):
kham.append(hk(k)) kham.append(kfunc(k))
kham = np.array(kham) kham = np.array(kham)
if hermitian: if hermitian:
assert np.allclose( assert np.allclose(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment