Skip to content

Commit

Permalink
Fixed error leading to duplicate bonds (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
peastman authored Sep 9, 2021
1 parent 80bd5b9 commit 9dc7681
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdbfixer/pdbfixer.py
Original file line number Diff line number Diff line change
Expand Up @@ -917,7 +917,7 @@ def addMissingAtoms(self, seed=None):
# Add the new bonds to the original Topology.

inverseAtomMap = dict((y,x) for (x,y) in existingAtomMap.items())
for atom1, atom2 in newTopology.bonds():
for atom1, atom2 in newBonds:
self.topology.addBond(inverseAtomMap[atom1], inverseAtomMap[atom2])
else:

Expand Down

0 comments on commit 9dc7681

Please sign in to comment.