mirror of
https://github.com/triqs/dft_tools
synced 2024-12-22 04:13:47 +01:00
Merge pull request #77 from HugoStrand/unstable
[sumk] gf.N1 deprecation warning fix
This commit is contained in:
commit
d181378115
@ -521,7 +521,7 @@ class SumkDFT(object):
|
|||||||
set_up_G_latt = True
|
set_up_G_latt = True
|
||||||
else: # Check that existing GF is consistent
|
else: # Check that existing GF is consistent
|
||||||
G_latt = getattr(self, "G_latt_" + iw_or_w)
|
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[
|
unchangedsize = all([self.n_orbitals[ik, ntoi[spn[isp]]] == GFsize[
|
||||||
isp] for isp in range(self.n_spin_blocks[self.SO])])
|
isp] for isp in range(self.n_spin_blocks[self.SO])])
|
||||||
if not unchangedsize:
|
if not unchangedsize:
|
||||||
|
Loading…
Reference in New Issue
Block a user