Skip to content

Commit 165674f

Browse files
authored
Update inputs.py (#224)
1 parent 293d168 commit 165674f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

alphafold3_pytorch/inputs.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3414,9 +3414,11 @@ def get_item(self, idx: int | str) -> PDBInput | AtomInput | None:
34143414
# get the mmCIF file corresponding to the sampled structure
34153415

34163416
if not exists(mmcif_filepath):
3417-
raise FileNotFoundError(f"mmCIF file for PDB ID {pdb_id} not found.")
3418-
if not os.path.exists(mmcif_filepath):
3419-
raise FileNotFoundError(f"mmCIF file {mmcif_filepath} not found.")
3417+
logger.warning(f"mmCIF file for PDB ID {pdb_id} not found.")
3418+
return None
3419+
elif not os.path.exists(mmcif_filepath):
3420+
logger.warning(f"mmCIF file {mmcif_filepath} not found.")
3421+
return None
34203422

34213423
cropping_config = None
34223424

0 commit comments

Comments
 (0)