Skip to content

Commit

Permalink
Merge pull request #94 from pyscal/fix_80
Browse files Browse the repository at this point in the history
reset hcp angles
  • Loading branch information
srmnitc authored Apr 19, 2024
2 parents 564dd1f + 2f69f0b commit da9706f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions atomrdf/structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -1294,6 +1294,10 @@ def _add_crystal_structure(self, targets=None):
self.schema.material.crystal_structure.unit_cell.angle(),
]

#fix for lattice angle of HCP
if targets[0] == 'hcp':
targets[5] = [90.0, 90.0, 120.0]

valid = self.graph._is_valid(targets)

if valid:
Expand Down

0 comments on commit da9706f

Please sign in to comment.