From c58bd9d60d124545a77cbc71e194cfe40550a86b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Monta=C3=B1ana=20G=C3=B3mez?= Date: Sat, 28 Sep 2024 18:58:49 +0200 Subject: [PATCH] add score name to best results excel file name --- src/best/BestResultsExcel.cpp | 2 +- src/common/Paths.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/best/BestResultsExcel.cpp b/src/best/BestResultsExcel.cpp index 172be07..b386b8d 100644 --- a/src/best/BestResultsExcel.cpp +++ b/src/best/BestResultsExcel.cpp @@ -32,7 +32,7 @@ namespace platform { } BestResultsExcel::BestResultsExcel(const std::string& score, const std::vector& datasets) : score(score), datasets(datasets) { - file_name = Paths::bestResultsExcel(); + file_name = Paths::bestResultsExcel(score); workbook = workbook_new(getFileName().c_str()); setProperties("Best Results"); int maxDatasetName = (*max_element(datasets.begin(), datasets.end(), [](const std::string& a, const std::string& b) { return a.size() < b.size(); })).size(); diff --git a/src/common/Paths.h b/src/common/Paths.h index dde0e2a..33ea909 100644 --- a/src/common/Paths.h +++ b/src/common/Paths.h @@ -44,9 +44,9 @@ namespace platform { { return "best_results_" + score + "_" + model + ".json"; } - static std::string bestResultsExcel() + static std::string bestResultsExcel(const std::string& score) { - return "BestResults.excel"; + return "BestResults_" + score + ".xlsx"; } static std::string excelResults() { return "some_results.xlsx"; } static std::string grid_input(const std::string& model)