diff options
author | Thomas White <taw@physics.org> | 2011-11-17 17:24:03 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:41 +0100 |
commit | ebe37d83ab3ed4647c24dc8c5c00d0f729b8d78b (patch) | |
tree | be3b0b231d9c84492c2cf3e52e5a0d56177e073f /src/hrs-scaling.c | |
parent | b2a2bf8d82fbc829f406d4ed05575505b0331bb1 (diff) |
Set scaling factors to 1 before scaling
Diffstat (limited to 'src/hrs-scaling.c')
-rw-r--r-- | src/hrs-scaling.c | 3 |
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; |