Skip to content

Commit

Permalink
small pep8 corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
lmmentel committed Apr 28, 2017
1 parent 5e8f1b8 commit 3b1fd4a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions espresso/espresso.py
Original file line number Diff line number Diff line change
Expand Up @@ -1335,7 +1335,7 @@ def write_input(self, inputname='pw.inp', calculation=None,
print(' ntyp='+str(self.nspecies)+',', file=finp)
if self.tot_charge is not None:
print(' tot_charge='+num2str(self.tot_charge)+',', file=finp)
if self.calculation!='hund':
if self.calculation != 'hund':
inimagscale = 1.0
else:
inimagscale = 0.9
Expand All @@ -1350,10 +1350,10 @@ def write_input(self, inputname='pw.inp', calculation=None,
from .atomic_configs import hundmag
self.totmag = sum([hundmag(x) for x in self.atoms.get_chemical_symbols()])
print(' tot_magnetization='+num2str(self.totmag*inimagscale)+',', file=finp)
print(' ecutwfc='+num2str(self.pw/Rydberg)+',', file=finp)
print(' ecutrho='+num2str(self.dw/Rydberg)+',', file=finp)
print(' ecutwfc=' + num2str(self.pw / Rydberg) + ',', file=finp)
print(' ecutrho=' + num2str(self.dw / Rydberg) + ',', file=finp)
if self.fw is not None:
print(' ecutfock='+num2str(self.fw/Rydberg)+',', file=finp)
print(' ecutfock=' + num2str(self.fw / Rydberg) + ',', file=finp)
#temporarily (and optionally) change number of bands for nscf calc.
if overridenbands is not None:
if self.nbands is None:
Expand Down

0 comments on commit 3b1fd4a

Please sign in to comment.