From b011f8f7504c6241c38e320354cb4d0cdef87edf Mon Sep 17 00:00:00 2001 From: Nils Wentzell Date: Thu, 27 Apr 2023 18:09:15 -0400 Subject: [PATCH] Changes to restore compatibility with gf v2 triqs developments --- doc/tutorials/images_scripts/maxent.py | 2 +- python/triqs_dft_tools/sumk_dft.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/tutorials/images_scripts/maxent.py b/doc/tutorials/images_scripts/maxent.py index 00f2ac49..e6f15cfa 100644 --- a/doc/tutorials/images_scripts/maxent.py +++ b/doc/tutorials/images_scripts/maxent.py @@ -28,7 +28,7 @@ for orb in orbs: for iO in orb: gf = gf + G_latt['up'][iO,iO] tm.set_G_iw(gf) - tm.omega =LinearOmegaMesh(omega_min=-20, omega_max=20, n_points=201) + tm.omega =LinearOmegaMesh(w_min=-20, w_max=20, n_points=201) tm.alpha_mesh = LogAlphaMesh(alpha_min=0.01, alpha_max=20000, n_points=60) tm.set_error(1.e-3) diff --git a/python/triqs_dft_tools/sumk_dft.py b/python/triqs_dft_tools/sumk_dft.py index df47a248..b25bf0fb 100644 --- a/python/triqs_dft_tools/sumk_dft.py +++ b/python/triqs_dft_tools/sumk_dft.py @@ -117,7 +117,7 @@ class SumkDFT(object): len(self.mesh)) elif isinstance(mesh, MeshReFreq): self.mesh = mesh - self.mesh_values = np.linspace(self.mesh.omega_min, self.mesh.omega_max, len(self.mesh)) + self.mesh_values = np.linspace(self.mesh.w_min, self.mesh.w_max, len(self.mesh)) else: raise ValueError('mesh must be a triqs mesh of type MeshImFreq or MeshReFreq') @@ -564,7 +564,7 @@ class SumkDFT(object): if isinstance(mesh, MeshImFreq): mesh_values = np.linspace(mesh(mesh.first_index()), mesh(mesh.last_index()), len(mesh)) else: - mesh_values = np.linspace(mesh.omega_min, mesh.omega_max, len(mesh)) + mesh_values = np.linspace(mesh.w_min, mesh.w_max, len(mesh)) else: mesh = self.mesh mesh_values = self.mesh_values @@ -574,7 +574,7 @@ class SumkDFT(object): if isinstance(mesh, MeshImFreq): mesh_values = np.linspace(mesh(mesh.first_index()), mesh(mesh.last_index()), len(mesh)) else: - mesh_values = np.linspace(mesh.omega_min, mesh.omega_max, len(mesh)) + mesh_values = np.linspace(mesh.w_min, mesh.w_max, len(mesh)) else: mesh = self.mesh mesh_values = self.mesh_values