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)