Skip to content

Commit

Permalink
include N
Browse files Browse the repository at this point in the history
  • Loading branch information
bjkreitz authored and rwest committed Nov 13, 2024
1 parent 3ae851e commit eb0eab9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions rmgpy/molecule/pathfinder.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,9 +496,9 @@ def find_adsorbate_delocalization_paths(atom1):
path = []
if atom1.is_surface_site():
for atom2, bond12 in atom1.edges.items():
if atom2.is_carbon():
if atom2.is_carbon() or atom2.is_nitrogen():
for atom3, bond23 in atom2.edges.items():
if atom3.is_carbon():
if atom3.is_carbon() or atom3.is_nitrogen():
for atom4, bond34 in atom3.edges.items():
if atom4.is_surface_site():
path.append([atom1, atom2, atom3, atom4, bond12, bond23, bond34])
Expand All @@ -521,11 +521,11 @@ def find_adsorbate_conjugate_delocalization_paths(atom1):
path = []
if atom1.is_surface_site():
for atom2, bond12 in atom1.edges.items():
if atom2.is_carbon():
if atom2.is_carbon() or atom2.is_nitrogen():
for atom3, bond23 in atom2.edges.items():
if atom3.is_carbon():
if atom3.is_carbon() or atom3.is_nitrogen():
for atom4, bond34 in atom3.edges.items():
if atom2 is not atom4 and atom4.is_carbon():
if atom2 is not atom4 and (atom4.is_carbon() or atom4.is_nitrogen()):
for atom5, bond45 in atom4.edges.items():
if atom5.is_surface_site():
path.append([atom1, atom2, atom3, atom4, atom5, bond12, bond23, bond34, bond45])
Expand Down

0 comments on commit eb0eab9

Please sign in to comment.