aboutsummaryrefslogtreecommitdiff
path: root/src/hrs-scaling.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-11-17 17:24:03 +0100
committerThomas White <taw@physics.org>2012-02-22 15:27:41 +0100
commitebe37d83ab3ed4647c24dc8c5c00d0f729b8d78b (patch)
treebe3b0b231d9c84492c2cf3e52e5a0d56177e073f /src/hrs-scaling.c
parentb2a2bf8d82fbc829f406d4ed05575505b0331bb1 (diff)
Set scaling factors to 1 before scaling
Diffstat (limited to 'src/hrs-scaling.c')
-rw-r--r--src/hrs-scaling.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hrs-scaling.c b/src/hrs-scaling.c
index 15f2c9f9..d04550a6 100644
--- a/src/hrs-scaling.c
+++ b/src/hrs-scaling.c
@@ -414,8 +414,9 @@ RefList *scale_intensities(struct image *images, int n, RefList *gref,
RefList *full = NULL;
const int min_redundancy = 3;
+ for ( i=0; i<n; i++ ) images[i].osf = 1.0;
+
if ( noscale ) {
- for ( i=0; i<n; i++ ) images[i].osf = 1.0;
full = lsq_intensities(images, n, n_threads);
calculate_esds(images, n, full, n_threads, min_redundancy);
return full;