diff --git a/src/plinder/eval/docking/write_scores.py b/src/plinder/eval/docking/write_scores.py index 48d7262f..355fa31e 100644 --- a/src/plinder/eval/docking/write_scores.py +++ b/src/plinder/eval/docking/write_scores.py @@ -7,7 +7,6 @@ from pathlib import Path from typing import Any -import numpy as np import ost import pandas as pd @@ -113,9 +112,7 @@ def write_scores_as_json( return reference_system = PlinderSystem(system_id=scorer_input.reference_system_id) receptor_file = None - if scorer_input.receptor_file is not None and not np.isnan( - scorer_input.receptor_file - ): + if not Path(receptor_file).exists(): receptor_file = Path(scorer_input.receptor_file) ligand_file = Path(scorer_input.ligand_file)