v1.0.0-rc.103 #8

Merged
leonarski_f merged 12 commits from 2511-rc.103 into main 2025-11-19 09:40:50 +01:00
2 changed files with 4 additions and 4 deletions
Showing only changes of commit 96db052c31 - Show all commits

View File

@@ -230,8 +230,8 @@ TEST_CASE("DetectorGeometryModular_Limit", "[DetectorGeometry]") {
DetectorGeometryModular geometry(module_geom);
REQUIRE(geometry.GetModulesNum() == 2);
CHECK(geometry.GetWidth(true) == 5000 + 513 - (-100 - 1029));
CHECK(geometry.GetHeight(true) == 2999 + 513 - 500);
CHECK(geometry.GetWidth(true) == 5000 + 514 - (-100 - 1030) - 1);
CHECK(geometry.GetHeight(true) == 2999 - 500 + 1);
}
TEST_CASE("DetectorGeometryModular_Custom_Mirror", "[DetectorGeometry]") {

View File

@@ -61,8 +61,8 @@ TEST_CASE("ImageMetadata_ROI_flipped_module") {
REQUIRE(message.roi.size() == 1);
REQUIRE(message.roi.contains("roi1"));
REQUIRE(message.roi["roi1"].sum == sum);
REQUIRE(message.roi["roi1"].x_weighted == sum * (23 + 45) );
REQUIRE(message.roi["roi1"].y_weighted == sum * (1811 - 50));
CHECK(message.roi["roi1"].x_weighted / sum == 23 );
CHECK(message.roi["roi1"].y_weighted / sum == 1029 - 50);
}
TEST_CASE("ImageMetadata_PulseID_mismatch") {