Skip to content

Commit

Permalink
Check Seed and Operations Files Exist (#102)
Browse files Browse the repository at this point in the history
* Check for seed and operations files

* Verbose error logging
  • Loading branch information
jasondu7297 authored Dec 28, 2023
1 parent aa4dbe8 commit cbdc8b5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions extras/ortoa/benchmark/interface/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cbdc8b5

Please sign in to comment.