From 572332f8704b7ab28c82387bdc608b7a5c13e55f Mon Sep 17 00:00:00 2001 From: Dhanya Thattil <33750417+thattil@users.noreply.github.com> Date: Tue, 14 Feb 2023 09:22:32 +0100 Subject: [PATCH] fix test for eiger half module for gap pixels (#658) --- slsDetectorSoftware/tests/test-CmdProxy.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/slsDetectorSoftware/tests/test-CmdProxy.cpp b/slsDetectorSoftware/tests/test-CmdProxy.cpp index eef9abeac..5e1067e9d 100644 --- a/slsDetectorSoftware/tests/test-CmdProxy.cpp +++ b/slsDetectorSoftware/tests/test-CmdProxy.cpp @@ -524,8 +524,10 @@ TEST_CASE("gappixels", "[.cmd]") { Detector det; CmdProxy proxy(&det); auto det_type = det.getDetectorType().squash(); + bool quad = det.getQuad().squash(false); + bool fullModule = (det.getModuleGeometry().y % 2 == 0); - if (det_type == defs::JUNGFRAU || det_type == defs::EIGER) { + if (det_type == defs::JUNGFRAU || (det_type == defs::EIGER && (quad || fullModule))) { auto prev_val = det.getGapPixelsinCallback(); { std::ostringstream oss;