From 769cf509a78ac776057c14ed9ddd9644a77e78a4 Mon Sep 17 00:00:00 2001 From: Valentina Galata Date: Tue, 12 Mar 2024 11:45:13 +0100 Subject: [PATCH] refactor(repository): use consistent naming for repository root directories Task: IL-238 --- .../evaluation/data_storage/aggregation_repository.py | 2 +- .../evaluation/data_storage/evaluation_repository.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/intelligence_layer/evaluation/data_storage/aggregation_repository.py b/src/intelligence_layer/evaluation/data_storage/aggregation_repository.py index ebccf17ec..ebf7ce93c 100644 --- a/src/intelligence_layer/evaluation/data_storage/aggregation_repository.py +++ b/src/intelligence_layer/evaluation/data_storage/aggregation_repository.py @@ -96,7 +96,7 @@ def aggregation_overview_ids(self) -> Sequence[str]: ) def _aggregation_root_directory(self) -> Path: - path = self._root_directory / "aggregation" + path = self._root_directory / "aggregations" path.mkdir(exist_ok=True) return path diff --git a/src/intelligence_layer/evaluation/data_storage/evaluation_repository.py b/src/intelligence_layer/evaluation/data_storage/evaluation_repository.py index 1e99d65f2..df007d676 100644 --- a/src/intelligence_layer/evaluation/data_storage/evaluation_repository.py +++ b/src/intelligence_layer/evaluation/data_storage/evaluation_repository.py @@ -276,7 +276,7 @@ def load_example_evaluation_from_file_name( return sorted(example_evaluations, key=lambda i: i.example_id) def _eval_root_directory(self) -> Path: - path = self._root_directory / "evals" + path = self._root_directory / "evaluations" path.mkdir(exist_ok=True) return path