fix test for eiger half module for gap pixels (#658)

This commit is contained in:
Dhanya Thattil 2023-02-14 09:22:32 +01:00 committed by GitHub
parent d90bf6c7df
commit 572332f870
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;