From 355b072fe7925d62e264e62d4f188a6371f4136c Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 23 Jan 2018 10:39:19 +0100 Subject: Reduce the weight on reflections if they have to be scaled up --- src/merge.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/merge.c') diff --git a/src/merge.c b/src/merge.c index 96e192f8..670f81c6 100644 --- a/src/merge.c +++ b/src/merge.c @@ -159,7 +159,6 @@ static void run_merge_job(void *vwargs, int cookie) signed int h, k, l; double mean, sumweight, M2, temp, delta, R; double corr, res, w; - //double esd; if ( get_partiality(refl) < MIN_PART_MERGE ) continue; @@ -200,8 +199,8 @@ static void run_merge_job(void *vwargs, int cookie) continue; } - //esd = get_esd_intensity(refl) * corr; - w = 1.0; + /* Reflections count less the more they have to be scaled up */ + w = 1.0 / corr; /* Running mean and variance calculation */ temp = w + sumweight; -- cgit v1.2.3