Commit 7bea9588 authored by Thomas White's avatar Thomas White Committed by Thomas White
Browse files

Mark reflections which were not found by update_partialities()

parent 9bd287bf
......@@ -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);
......
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment