From a468e462229c760836bcc7d3eedf3d397ab0f96d Mon Sep 17 00:00:00 2001 From: leonarski_f Date: Mon, 11 May 2026 13:56:05 +0200 Subject: [PATCH] Merge: Remove scaling correction for now (need to think about it) --- image_analysis/scale_merge/Merge.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/image_analysis/scale_merge/Merge.cpp b/image_analysis/scale_merge/Merge.cpp index 29939e5c..186d4c1e 100644 --- a/image_analysis/scale_merge/Merge.cpp +++ b/image_analysis/scale_merge/Merge.cpp @@ -119,8 +119,8 @@ namespace { if (!std::isfinite(I_corr) || !std::isfinite(sigma_corr) || sigma_corr <= 0.0) continue; - // Extra factor o.r->scaling_correction down-weights weak images / low partiality observations. - const double w = o.r->scaling_correction / (sigma_corr * sigma_corr); + // TODO: Figure out right way to handle this + const double w = 1.0 / (sigma_corr * sigma_corr); auto &a = acc[o.hkl]; a.sum_wI += w * I_corr;