Commit 0f54f679 authored by Gustaf Ahdritz's avatar Gustaf Ahdritz
Browse files

Fix PDB parsing bug

parent 99cdb062
......@@ -254,7 +254,7 @@ def add_pdb_headers(prot: Protein, pdb_str: str) -> str:
parents_per_chain = None
if(prot.parents is not None):
parents_per_chain = []
if(prot.parents_chain_index is not None):
if(prot.parents_chain_index is not None and len(prot.parents_chain_index) > 0):
cur_chain = prot.parents_chain_index[0]
parent_dict = {}
for p, i in zip(prot.parents, prot.parents_chain_index):
......
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