3
0
mirror of https://github.com/triqs/dft_tools synced 2024-12-23 04:43:42 +01:00

Fix additional integer division to use floordiv

This commit is contained in:
Nils Wentzell 2020-04-14 11:21:33 -04:00
parent 4698f9db6e
commit d9fa71fbec

View File

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