From a5839806eb368ea4d2fe41e974799abaf20788b8 Mon Sep 17 00:00:00 2001 From: Johanna <johanna@zijderveld.de> Date: Tue, 7 May 2024 15:50:37 +0200 Subject: [PATCH] fix renames of functions --- docs/source/graphene_example.md | 2 +- docs/source/hubbard_1d.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/graphene_example.md b/docs/source/graphene_example.md index 1931a9a..cd3a265 100644 --- a/docs/source/graphene_example.md +++ b/docs/source/graphene_example.md @@ -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]) diff --git a/docs/source/hubbard_1d.md b/docs/source/hubbard_1d.md index 8f1a7ea..9c5b75e 100644 --- a/docs/source/hubbard_1d.md +++ b/docs/source/hubbard_1d.md @@ -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") -- GitLab