diff --git a/python/triqs_tprf/gw_solver.py b/python/triqs_tprf/gw_solver.py index 8c5709a6..8fc44b9a 100644 --- a/python/triqs_tprf/gw_solver.py +++ b/python/triqs_tprf/gw_solver.py @@ -147,10 +147,13 @@ def calc_real_freq(self, fmesh, fbmesh=None, opts=dict()): V_k = self.V_k, g0_fk = self.g0_fk, g_fk = self.g_fk, - sigma_hartree_k = self.sigma_hartree_k, - sigma_fock_k = self.sigma_fock_k, ) + if hasattr(self, 'sigma_hartree_k'): + gw_rf.sigma_hartree_k = self.sigma_hartree_k + if hasattr(self, 'sigma_fock_k'): + gw_rf.sigma_fock_k = self.sigma_fock_k + if fbmesh is None: fbmesh = fmesh