jfjoch_tests: Fix for EIGER readout time
This commit is contained in:
@@ -588,16 +588,18 @@ TEST_CASE("DiffractionExperiment_GridScan","[DiffractionExperiment]") {
|
||||
}
|
||||
|
||||
TEST_CASE("DiffractionExperiment_ImageTime_EIGER","[DiffractionExperiment]") {
|
||||
auto readout = 20us;
|
||||
DiffractionExperiment x(DetEIGER(3));
|
||||
|
||||
DatasetSettings s;
|
||||
x.FrameTime(583us);
|
||||
REQUIRE(x.GetDetectorSetup().GetReadOutTime() == 20us);
|
||||
REQUIRE(x.GetDetectorSetup().GetReadOutTime() == readout);
|
||||
|
||||
s.ImageTime(5ms);
|
||||
x.ImportDatasetSettings(s);
|
||||
REQUIRE(x.GetSummation() == 1);
|
||||
REQUIRE(x.GetFrameTime() == 5ms);
|
||||
REQUIRE(x.GetFrameCountTime() == 5000us - 3us);
|
||||
REQUIRE(x.GetFrameCountTime() == 5000us - readout);
|
||||
REQUIRE(x.GetEigerBitDepth() == 32);
|
||||
REQUIRE(x.GetBitDepthReadout() == 32);
|
||||
|
||||
@@ -605,7 +607,7 @@ TEST_CASE("DiffractionExperiment_ImageTime_EIGER","[DiffractionExperiment]") {
|
||||
REQUIRE_NOTHROW(x.ImportDatasetSettings(s));
|
||||
REQUIRE(x.GetSummation() == 1);
|
||||
REQUIRE(x.GetFrameTime() == 583us);
|
||||
REQUIRE(x.GetFrameCountTime() == 583us - 3us);
|
||||
REQUIRE(x.GetFrameCountTime() == 583us - readout);
|
||||
REQUIRE(x.GetEigerBitDepth() == 16);
|
||||
REQUIRE(x.GetBitDepthReadout() == 16);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user