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

fix renames of functions

parent 2b51e41b
No related branches found
No related tags found
1 merge request!7Examples
This commit is part of merge request !7. Comments created here will be created in the context of that merge request.
......@@ -70,7 +70,7 @@ We can now create a phase diagram of the gap of the interacting solution. In ord
```{code-cell} ipython3
def compute_gap(h, fermi_energy=0, nk=100):
kham = pymf.tb_to_khamvector(h, nk, ks=None)
kham = pymf.tb_to_kgrid(h, nk)
vals = np.linalg.eigvalsh(kham)
emax = np.max(vals[vals <= fermi_energy])
......
......@@ -42,7 +42,7 @@ We verify this tight-binding model by plotting the band structure and observing
# Set number of k-points
nk = 100
ks = np.linspace(0, 2*np.pi, nk, endpoint=False)
hamiltonians_0 = pymf.tb_to_khamvector(h_0, nk, ks=ks)
hamiltonians_0 = pymf.tb_to_kgrid(h_0, nk)
vals, vecs = np.linalg.eigh(hamiltonians_0)
plt.plot(ks, vals, c="k")
......
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