From 56480d50c55443398892bac3cfe22899fa09e4f7 Mon Sep 17 00:00:00 2001 From: "Hugo U. R. Strand" Date: Wed, 4 Oct 2017 17:50:20 -0400 Subject: [PATCH] [sumk] gf.N1 deprecation warning fix --- python/sumk_dft.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/sumk_dft.py b/python/sumk_dft.py index 2d32d4a2..024b7729 100644 --- a/python/sumk_dft.py +++ b/python/sumk_dft.py @@ -521,7 +521,7 @@ class SumkDFT(object): set_up_G_latt = True else: # Check that existing GF is consistent G_latt = getattr(self, "G_latt_" + iw_or_w) - GFsize = [gf.N1 for bname, gf in G_latt] + GFsize = [gf.target_shape[0] for bname, gf in G_latt] unchangedsize = all([self.n_orbitals[ik, ntoi[spn[isp]]] == GFsize[ isp] for isp in range(self.n_spin_blocks[self.SO])]) if not unchangedsize: