Skip to content

Commit

Permalink
Fix Stepanov lookup for 0 beta
Browse files Browse the repository at this point in the history
  • Loading branch information
tfarago committed Jan 29, 2018
1 parent 347faca commit 9c3b3c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions syris/materials.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ def make_stepanov(name, energies, density=None, formula=None, crystal=None):
url = base + mat + apdx
res = urllib2.urlopen(url)
txt = res.read()
lines = txt[txt.find('delta='):].split()
delta = float(lines[1])
lines = txt[txt.find('delta='):].split('\n')
delta = float(lines[1].split('=')[1])
beta = - float(lines[2].split('=')[1])
indices.append(cfg.PRECISION.np_cplx(float(delta) + float(beta) * 1j))
# Don't cause a DOS
Expand Down

0 comments on commit 9c3b3c1

Please sign in to comment.