Skip to content

Commit

Permalink
Fix bug for reading duplicate bonds
Browse files Browse the repository at this point in the history
  • Loading branch information
leeping committed Sep 5, 2023
1 parent d41496d commit cd5bc47
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion geometric/molecule.py
Original file line number Diff line number Diff line change
Expand Up @@ -3786,7 +3786,8 @@ def read_pdb(self, fnm, **kwargs):
line_rest = line_rest[5:]
for conect_B in conect_B_list:
bond = (min((conect_A, conect_B)), max((conect_A, conect_B)))
bonds.append(bond)
if bond not in bonds:
bonds.append(bond)

Answer={"xyzs":XYZList, "chain":list(ChainID), "altloc":list(AltLoc), "icode":list(ICode),
"atomname":[str(i) for i in AtomNames], "resid":list(ResidueID), "resname":list(ResidueNames),
Expand Down

0 comments on commit cd5bc47

Please sign in to comment.