Skip to content

Commit

Permalink
stepanov: fix result parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
tfarago committed Jan 29, 2018
1 parent 9c3b3c1 commit 9100d0c
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 @@ -175,8 +175,8 @@ def make_stepanov(name, energies, density=None, formula=None, crystal=None):
res = urllib2.urlopen(url)
txt = res.read()
lines = txt[txt.find('delta='):].split('\n')
delta = float(lines[1].split('=')[1])
beta = - float(lines[2].split('=')[1])
delta = float(lines[0].split('=')[1])
beta = - float(lines[1].split('=')[1])
indices.append(cfg.PRECISION.np_cplx(float(delta) + float(beta) * 1j))
# Don't cause a DOS
time.sleep(0.1)
Expand Down

0 comments on commit 9100d0c

Please sign in to comment.