diff options
author | Thomas White <taw@bitwiz.org.uk> | 2011-07-10 09:14:32 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:32 +0100 |
commit | 7bea9588b976cc24a3906994f884807a269ece27 (patch) | |
tree | c2112271b228672e907d580635a8d54f1c9a16f0 /src | |
parent | 9bd287bf7d7af36c70fc0a56ff688e98dac6d3d8 (diff) |
Mark reflections which were not found by update_partialities()
Diffstat (limited to 'src')
-rw-r--r-- | src/geometry.c | 2 | ||||
-rw-r--r-- | src/partialator.c | 3 |
2 files changed, 5 insertions, 0 deletions
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; |