v1.0.0-rc.64

This commit is contained in:
2025-07-15 09:55:19 +02:00
parent c56d9bc1db
commit be6d8ad0f5
161 changed files with 444 additions and 219 deletions

View File

@@ -15,4 +15,21 @@ TEST_CASE("DetectorSettings_CountTime") {
REQUIRE(d.GetFrameTime() == std::chrono::milliseconds(1));
REQUIRE(d.GetCountTime());
REQUIRE(d.GetCountTime().value().count() == 500);
}
TEST_CASE("DetectorSettings_NeedsJUNGFRAURecalibration") {
DetectorSettings d1;
d1.EigerThreshold_keV(12.4).FixGainG1(true).PedestalG1Frames(1234);
DetectorSettings d2 = d1;
REQUIRE(!d1.NeedsJUNGFRAURecalibration(d1));
REQUIRE(!d1.NeedsJUNGFRAURecalibration(d2));
d1.DetectorDelay(std::chrono::microseconds(500)).EigerThreshold_keV(10.0).EigerBitDepth(32).InternalGeneratorImages(12);
REQUIRE(!d2.NeedsJUNGFRAURecalibration(d1));
REQUIRE(!d1.NeedsJUNGFRAURecalibration(d2));
d1.FrameTime(std::chrono::microseconds(1000), std::chrono::microseconds(10));
REQUIRE(d1.NeedsJUNGFRAURecalibration(d2));
REQUIRE(d2.NeedsJUNGFRAURecalibration(d1));
REQUIRE(d1.NeedsJUNGFRAURecalibration(DetectorSettings()));
}