From 0ade72a37ad73128126217a988b316c65314d713 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Monta=C3=B1ana=20G=C3=B3mez?= Date: Tue, 12 Mar 2024 00:24:36 +0100 Subject: [PATCH] Permit partial results comparison --- src/manage/ManageResults.cpp | 8 -------- src/reports/ReportExcelCompared.cpp | 3 +++ 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/manage/ManageResults.cpp b/src/manage/ManageResults.cpp index 8063a69..0c34958 100644 --- a/src/manage/ManageResults.cpp +++ b/src/manage/ManageResults.cpp @@ -191,10 +191,6 @@ namespace platform { std::cout << Colors::RED() << "A and B cannot be the same!" << Colors::RESET() << std::endl; break; } - if (!results.at(index).isComplete()) { - std::cout << Colors::RED() << "A must be a complete result!" << Colors::RESET() << std::endl; - break; - } index_A = index; break; case 'b': @@ -203,10 +199,6 @@ namespace platform { std::cout << Colors::RED() << "A and B cannot be the same!" << Colors::RESET() << std::endl; break; } - if (!results.at(index).isComplete()) { - std::cout << Colors::RED() << "B must be a complete result!" << Colors::RESET() << std::endl; - break; - } index_B = index; } else { // back to show the report diff --git a/src/reports/ReportExcelCompared.cpp b/src/reports/ReportExcelCompared.cpp index 686911e..605f35a 100644 --- a/src/reports/ReportExcelCompared.cpp +++ b/src/reports/ReportExcelCompared.cpp @@ -104,6 +104,9 @@ namespace platform { totals_A[j] += r_A[key].get(); totals_B[j] += r_B[key].get(); } + if (r_A["dataset"].get() != r_B["dataset"].get()) { + throw std::runtime_error("Datasets are not the same [" + r_A["dataset"].get() + "] vs [" + r_B["dataset"].get() + "]"); + } writeString(row, col++, r_A["dataset"].get(), "text"); writeInt(row, col++, r_A["samples"].get(), "ints"); writeInt(row, col++, r_A["features"].get(), "ints");