Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
rwxayheee committed Oct 21, 2024
1 parent b88c83d commit 700ed89
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions meeko/linked_rdkit_chorizo.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,8 @@ def get_updated_positions(residue, new_positions: dict):
h_to_update.add(n2.GetIdx())
# updating all n1h is forced
else:
if n2 not in new_positions:
h_to_update.update(set(n2h.GetIdx() for n2h in n2.GetNeighbors() if n2h.AtomicNum() == 1))
if n2.GetIdx() not in new_positions:
h_to_update.update(set(n2h.GetIdx() for n2h in n2.GetNeighbors() if n2h.GetAtomicNum() == 1))
# n1-induced updating of n2h

for index in new_positions:
Expand All @@ -389,7 +389,6 @@ def get_updated_positions(residue, new_positions: dict):
return mol.GetConformer().GetPositions()



def update_H_positions(mol: Chem.Mol, indices_to_update: list[int]) -> None:
"""
Re-calculates the position of some hydrogens already existing in the mol. Does not guarantee that chirality can be
Expand Down

0 comments on commit 700ed89

Please sign in to comment.