From d9fa71fbeccf25fc22d8091f6ed855c9b6e9e4aa Mon Sep 17 00:00:00 2001 From: Nils Wentzell Date: Tue, 14 Apr 2020 11:21:33 -0400 Subject: [PATCH] Fix additional integer division to use floordiv --- python/converters/plovasp/elstruct.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/converters/plovasp/elstruct.py b/python/converters/plovasp/elstruct.py index ad421ed0..b0a9ba58 100644 --- a/python/converters/plovasp/elstruct.py +++ b/python/converters/plovasp/elstruct.py @@ -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