Skip to content

Commit

Permalink
Use Atom.is_surface_site method
Browse files Browse the repository at this point in the history
Jackson's suggestion

Co-authored-by: Jackson Burns <[email protected]>
  • Loading branch information
rwest and JacksonBurns committed Oct 11, 2023
1 parent 321c7af commit cc899c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rmgpy/molecule/molecule.py
Original file line number Diff line number Diff line change
Expand Up @@ -1164,7 +1164,7 @@ def number_of_surface_sites(self):
cython.declare(count=cython.int)
count = 0
for atom in self.atoms:
if atom.symbol == 'X':
if atom.is_surface_site():
count += 1
return count

Expand Down

0 comments on commit cc899c3

Please sign in to comment.