Skip to content

Commit 3b09319

Browse files
Fix AlphaFold predictions (#185)
1 parent 4066f6e commit 3b09319

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

executor-p2rank/executor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ def _download_from_alpha_fold(
132132
metadata["alpha-fold"] = entry_content
133133
if len(entry_content) == 0:
134134
raise Exception(f"No Alphafold entry found for: {code}")
135-
assert len(entry_content) == 1, \
136-
f"One entry expected for AlphaFold, found {len(entry_content)}"
135+
if len(entry_content) != 1:
136+
logger.warning(f"One entry expected for AlphaFold, found {len(entry_content)}! Using the first entry.")
137137
cif_url = entry_content[0]["cifUrl"]
138138
_download(cif_url, destination)
139139

0 commit comments

Comments
 (0)