Skip to content

Commit

Permalink
make cosmetic adjustments to the code
Browse files Browse the repository at this point in the history
  • Loading branch information
bjkreitz committed Dec 13, 2024
1 parent 091b62b commit 0738594
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions rmgpy/molecule/pathfinder.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,7 @@ def is_atom_able_to_lose_lone_pair(atom):
or (atom.is_oxygen() and atom.lone_pairs in [2, 3])
or atom.is_carbon() and atom.lone_pairs == 1)


def find_adsorbate_delocalization_paths(atom1):
"""
Find all multidentate adsorbates which have a bonding configuration X-C-C-X.
Expand All @@ -506,6 +507,7 @@ def find_adsorbate_delocalization_paths(atom1):
paths.append([atom1, atom2, atom3, atom4, bond12, bond23, bond34])
return paths


def find_adsorbate_conjugate_delocalization_paths(atom1):
"""
Find all multidentate adsorbates which have a bonding configuration X-C-C-C-X.
Expand Down
2 changes: 1 addition & 1 deletion rmgpy/molecule/resonance.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def analyze_molecule(mol, save_order=False):
'is_aryl_radical': False,
'hasNitrogenVal5': False,
'hasLonePairs': False,
'is_multidentate':mol.is_multidentate(),
'is_multidentate': mol.is_multidentate(),
}

if features['is_cyclic']:
Expand Down

0 comments on commit 0738594

Please sign in to comment.