Skip to content

Commit

Permalink
Fix another PDB parsing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
gahdritz committed Jun 22, 2022
1 parent 0f54f67 commit 6da2cda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openfold/np/protein.py
Expand Up @@ -252,9 +252,9 @@ def add_pdb_headers(prot: Protein, pdb_str: str) -> str:
out_pdb_lines.append(f"REMARK {remark}")

parents_per_chain = None
if(prot.parents is not None):
if(prot.parents is not None and len(prot.parents) > 0):
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]
parent_dict = {}
for p, i in zip(prot.parents, prot.parents_chain_index):
Expand Down

0 comments on commit 6da2cda

Please sign in to comment.