v1.0.0-rc.64
This commit is contained in:
@@ -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()));
|
||||
}
|
||||
Reference in New Issue
Block a user