Commit 6da2cdaf authored by Gustaf Ahdritz's avatar Gustaf Ahdritz
Browse files

Fix another PDB parsing bug

parent 0f54f679
...@@ -252,9 +252,9 @@ def add_pdb_headers(prot: Protein, pdb_str: str) -> str: ...@@ -252,9 +252,9 @@ def add_pdb_headers(prot: Protein, pdb_str: str) -> str:
out_pdb_lines.append(f"REMARK {remark}") out_pdb_lines.append(f"REMARK {remark}")
parents_per_chain = None parents_per_chain = None
if(prot.parents is not None): if(prot.parents is not None and len(prot.parents) > 0):
parents_per_chain = [] parents_per_chain = []
if(prot.parents_chain_index is not None and len(prot.parents_chain_index) > 0): if(prot.parents_chain_index is not None):
cur_chain = prot.parents_chain_index[0] cur_chain = prot.parents_chain_index[0]
parent_dict = {} parent_dict = {}
for p, i in zip(prot.parents, prot.parents_chain_index): 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