Skip to content

Commit

Permalink
add the function to print out Pearson Symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
qzhu2017 committed May 17, 2024
1 parent 1c14c01 commit 563ff8b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pyxtal/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3452,3 +3452,9 @@ def from_tabular_representation(self, rep, max_abc=50.0, max_angle=180):
except:
print("Invalid Build", lattice, numIons, sites)
self.valid = False

def get_Pearson_Symbol(self):
"""
Return the Pearson symbol: https://en.wikipedia.org/wiki/Pearson_symbol
"""
return self.group.lattice_type[0] + self.group.symbol[0] + str(sum(self.numIons))

0 comments on commit 563ff8b

Please sign in to comment.