Skip to content

Commit

Permalink
Another workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
kazeevn committed Sep 29, 2024
1 parent 5063933 commit a303896
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pyxtal/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,10 @@ def get_symmetrized_pmg(pmg, tol=1e-3, a_tol=5.0, style="pyxtal", hn=None):
Returns:
pymatgen structure with symmetrized lattice
"""

pmg, hn_new = symmetrize(pmg, tol, a_tol=a_tol, style=style, hn=hn)
try:
pmg, hn_new = symmetrize(pmg, tol, a_tol=a_tol, style=style, hn=hn)
except AttributeError:
return get_symmetrized_pmg(pmg, tol*0.9, a_tol, style, hn)
s = sga(pmg, symprec=tol, angle_tolerance=a_tol)
# make sure that the coordinates are in standard setting
# if hn is None:
Expand Down

0 comments on commit a303896

Please sign in to comment.