aboutsummaryrefslogtreecommitdiff
path: root/src/merge.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2018-01-23 10:39:19 +0100
committerThomas White <taw@physics.org>2018-02-27 17:12:42 +0100
commit355b072fe7925d62e264e62d4f188a6371f4136c (patch)
tree65d812874c3876dcbf0961aac583657c3ac4bf45 /src/merge.c
parentc572f2b38a92fbe25ddf8ae2258fce02c2bdbedd (diff)
Reduce the weight on reflections if they have to be scaled up
Diffstat (limited to 'src/merge.c')
-rw-r--r--src/merge.c5
1 files changed, 2 insertions, 3 deletions
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;