From 7bea9588b976cc24a3906994f884807a269ece27 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sun, 10 Jul 2011 09:14:32 +0200 Subject: Mark reflections which were not found by update_partialities() --- src/geometry.c | 2 ++ src/partialator.c | 3 +++ 2 files changed, 5 insertions(+) (limited to 'src') diff --git a/src/geometry.c b/src/geometry.c index fa66ed71..2329b0c7 100644 --- a/src/geometry.c +++ b/src/geometry.c @@ -311,9 +311,11 @@ void update_partialities(struct image *image, if ( vals == NULL ) { if ( n_notfound != NULL) (*n_notfound)++; + set_redundancy(refl, 0); continue; } if ( n_found != NULL) (*n_found)++; + set_redundancy(refl, 1); /* Transfer partiality stuff */ get_partial(vals, &r1, &r2, &p, &clamp1, &clamp2); diff --git a/src/partialator.c b/src/partialator.c index 070aeee3..b6bfe2fc 100644 --- a/src/partialator.c +++ b/src/partialator.c @@ -162,6 +162,9 @@ static int select_scalable_reflections(RefList *list, RefList *reference) int sc = 1; double v; + /* This means the reflection was not found on the last check */ + if ( get_redundancy(refl) == 0 ) sc = 0; + if ( get_partiality(refl) < 0.1 ) sc = 0; v = fabs(get_intensity(refl)); if ( v < 0.1 ) sc = 0; -- cgit v1.2.3