From a7c77f1f080cbef0ec6525ad2c0214cc8eea4a0b Mon Sep 17 00:00:00 2001 From: leonarski_f Date: Thu, 18 Jun 2026 16:09:05 +0200 Subject: [PATCH] internal generator: compare raw image width to RAW_MODULE_COLS The raw stacked-module layout check compared the image width (cols) against RAW_MODULE_SIZE (the per-module pixel count, 524288) instead of RAW_MODULE_COLS (1024), so a raw-geometry TIFF could never be accepted. Co-Authored-By: Claude Opus 4.8 --- broker/JFJochStateMachine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/broker/JFJochStateMachine.cpp b/broker/JFJochStateMachine.cpp index b2daa353..00eae79d 100644 --- a/broker/JFJochStateMachine.cpp +++ b/broker/JFJochStateMachine.cpp @@ -812,7 +812,7 @@ void JFJochStateMachine::LoadInternalGeneratorImageTIFF(const std::string &s, ui uint32_t cols, lines; auto v = ReadTIFFFromString16(s, cols, lines); if (((cols == experiment.GetXPixelsNum()) && (lines == experiment.GetYPixelsNum())) - || ((cols == RAW_MODULE_SIZE) && (lines == RAW_MODULE_LINES * experiment.GetModulesNum()))) + || ((cols == RAW_MODULE_COLS) && (lines == RAW_MODULE_LINES * experiment.GetModulesNum()))) services.LoadInternalGeneratorImage(experiment, v, image_number); else throw JFJochException(JFJochExceptionCategory::InputParameterInvalid,