Skip to content

Commit

Permalink
Merge pull request #103 from OMalenfantThuot/ase_calc
Browse files Browse the repository at this point in the history
fix for ase calculators
  • Loading branch information
OMalenfantThuot committed Jun 15, 2020
2 parents 8e13c69 + 47278ed commit 77921f0
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions mlcalcdriver/base/posinp.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,12 +178,10 @@ def _from_lines(cls, lines):
# Decode the second line
line2 = lines.pop(0)
boundary_conditions = line2[0].lower()
if boundary_conditions == "periodic":
cell = line2[1:4]
elif boundary_conditions == "surface":
cell = [line2[1], 0.0, line2[3]]
else:
if boundary_conditions == "free":
cell = None
else:
cell = line2[1:4]
# Angles if present
if lines[0][0] == "angles":
angles = np.array([float(a) for a in lines.pop(0)[1:]])
Expand Down

0 comments on commit 77921f0

Please sign in to comment.