Skip to content

Commit

Permalink
Fix PDB parsing bug
Browse files Browse the repository at this point in the history
  • Loading branch information
gahdritz committed Jun 22, 2022
1 parent 99cdb06 commit 0f54f67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openfold/np/protein.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 0f54f67

Please sign in to comment.