3
0
mirror of https://github.com/triqs/dft_tools synced 2024-06-29 16:34:53 +02:00

Merge branch 'py3' of github.com:TRIQS/dft_tools into py3

This commit is contained in:
Alexander Hampel 2020-04-15 11:29:03 -04:00
commit 62c810d8d6

View File

@ -154,7 +154,7 @@ class ElectronicStructure:
nproj, ns, nk, nb = plo.shape
ions = sorted(list(set([param['isite'] for param in self.proj_params])))
nions = len(ions)
norb = nproj / nions
norb = nproj // nions
# Spin factor
sp_fac = 2.0 if ns == 1 and not self.nc_flag else 1.0