Permit partial results comparison

This commit is contained in:
2024-03-12 00:24:36 +01:00
parent 72cda3784a
commit 0ade72a37a
2 changed files with 3 additions and 8 deletions

View File

@@ -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

View File

@@ -104,6 +104,9 @@ namespace platform {
totals_A[j] += r_A[key].get<double>();
totals_B[j] += r_B[key].get<double>();
}
if (r_A["dataset"].get<std::string>() != r_B["dataset"].get<std::string>()) {
throw std::runtime_error("Datasets are not the same [" + r_A["dataset"].get<std::string>() + "] vs [" + r_B["dataset"].get<std::string>() + "]");
}
writeString(row, col++, r_A["dataset"].get<std::string>(), "text");
writeInt(row, col++, r_A["samples"].get<int>(), "ints");
writeInt(row, col++, r_A["features"].get<int>(), "ints");