Commit a56ba941 authored by Rafal P. Wiewiora's avatar Rafal P. Wiewiora
Browse files

add CONECT bonds for multimodel pdb files

parent 83cfc856
...@@ -154,7 +154,7 @@ class PDBFile(object): ...@@ -154,7 +154,7 @@ class PDBFile(object):
# Add bonds based on CONECT records. # Add bonds based on CONECT records.
connectBonds = [] connectBonds = []
for connect in pdb.models[0].connects: for connect in pdb.models[-1].connects:
i = connect[0] i = connect[0]
for j in connect[1:]: for j in connect[1:]:
if i in atomByNumber and j in atomByNumber: if i in atomByNumber and j in atomByNumber:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment