From cbdc8b5f10294117c7edf4ee90f2f9cf44ba9964 Mon Sep 17 00:00:00 2001 From: Jason Du <78238426+jasondu7297@users.noreply.github.com> Date: Thu, 28 Dec 2023 11:52:24 -0500 Subject: [PATCH] Check Seed and Operations Files Exist (#102) * Check for seed and operations files * Verbose error logging --- extras/ortoa/benchmark/interface/experiment.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/extras/ortoa/benchmark/interface/experiment.py b/extras/ortoa/benchmark/interface/experiment.py index 3664a28..0a93b51 100644 --- a/extras/ortoa/benchmark/interface/experiment.py +++ b/extras/ortoa/benchmark/interface/experiment.py @@ -74,6 +74,12 @@ def generate_data(self) -> None: output_file, ) + if self.client_config.data.seed and not self.client_config.data.seed.exists(): + raise FileNotFoundError(f"Seed file {self.client_config.data.seed} was not found.") + + if self.client_config.data.operations and not self.client_config.data.operations.exists(): + raise FileNotFoundError(f"Operations file {self.client_config.data.operations} was not found.") + def load_experiments( experiment_paths: List[ExperimentPath], base_dir: Path