aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-06-27 11:40:01 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:30 +0100
commit2cfcbecc2effde939f10789949ab4c8f4a3e2cd9 (patch)
tree2db26e94cc4cd187dc5b6b253294b6d863127c2a /src
parent80fc8ccadfda39897c5875c7a0e4269058b126bf (diff)
Can't set redundancy on a reflection which doesn't exist
Diffstat (limited to 'src')
-rw-r--r--src/hrs-scaling.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/hrs-scaling.c b/src/hrs-scaling.c
index 85ac1878..cbae682c 100644
--- a/src/hrs-scaling.c
+++ b/src/hrs-scaling.c
@@ -426,11 +426,10 @@ static RefList *lsq_intensities(struct image *images, int n,
}
- set_redundancy(new, redundancy);
-
if ( !isnan(num/den) ) {
new = add_refl(full, it->h, it->k, it->l);
set_int(new, num/den);
+ set_redundancy(new, redundancy);
} else {
ERROR("Couldn't calculate LSQ full intensity for"
"%3i %3i %3i\n", it->h, it->k, it->l);