From 885ca986a728c0649da5c69dc95b66e0f72dabcc Mon Sep 17 00:00:00 2001 From: leonarski_f Date: Mon, 2 Mar 2026 14:08:14 +0100 Subject: [PATCH] jfjoch_tests: Fix for EIGER readout time --- tests/DiffractionExperimentTest.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/DiffractionExperimentTest.cpp b/tests/DiffractionExperimentTest.cpp index d406acfc..285aca9c 100644 --- a/tests/DiffractionExperimentTest.cpp +++ b/tests/DiffractionExperimentTest.cpp @@ -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);