Skip to content

Commit

Permalink
update adsorbate_conjugate_resonance_structure with double_or_triple …
Browse files Browse the repository at this point in the history
…function
  • Loading branch information
bjkreitz committed Dec 5, 2024
1 parent 35854ef commit 091b62b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rmgpy/molecule/resonance.py
Original file line number Diff line number Diff line change
Expand Up @@ -1216,9 +1216,9 @@ def generate_adsorbate_conjugate_resonance_structures(mol):
for atom in mol.vertices:
paths = pathfinder.find_adsorbate_conjugate_delocalization_paths(atom)
for atom1, atom2, atom3, atom4, atom45, bond12, bond23, bond34, bond45 in paths:
if ((bond12.is_double() or bond12.is_triple()) and
if (bond12.is_double_or_triple() and
(bond23.is_single() or bond23.is_double()) and
(bond34.is_double() or bond34.is_triple()) and
bond34.is_double_or_triple() and
(bond45.is_single() or bond45.is_double())):
bond12.decrement_order()
bond23.increment_order()
Expand Down

0 comments on commit 091b62b

Please sign in to comment.