@@ -499,9 +499,9 @@ def find_adsorbate_delocalization_paths(atom1):
499499 paths = []
500500 if atom1 .is_surface_site ():
501501 for atom2 , bond12 in atom1 .edges .items ():
502- if atom2 .is_carbon ():
502+ if atom2 .is_carbon () or atom2 . is_nitrogen () :
503503 for atom3 , bond23 in atom2 .edges .items ():
504- if atom3 .is_carbon ():
504+ if atom3 .is_carbon () or atom3 . is_nitrogen () :
505505 for atom4 , bond34 in atom3 .edges .items ():
506506 if atom4 .is_surface_site ():
507507 paths .append ([atom1 , atom2 , atom3 , atom4 , bond12 , bond23 , bond34 ])
@@ -526,11 +526,11 @@ def find_adsorbate_conjugate_delocalization_paths(atom1):
526526 paths = []
527527 if atom1 .is_surface_site ():
528528 for atom2 , bond12 in atom1 .edges .items ():
529- if atom2 .is_carbon ():
529+ if atom2 .is_carbon () or atom2 . is_nitrogen () :
530530 for atom3 , bond23 in atom2 .edges .items ():
531- if atom3 .is_carbon ():
531+ if atom3 .is_carbon () or atom3 . is_nitrogen () :
532532 for atom4 , bond34 in atom3 .edges .items ():
533- if atom2 is not atom4 and atom4 .is_carbon ():
533+ if atom2 is not atom4 and ( atom4 .is_carbon () or atom4 . is_nitrogen () ):
534534 for atom5 , bond45 in atom4 .edges .items ():
535535 if atom5 .is_surface_site ():
536536 paths .append ([atom1 , atom2 , atom3 , atom4 , atom5 , bond12 , bond23 , bond34 , bond45 ])
0 commit comments