aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2014-05-26 22:23:02 +0200
committerThomas White <taw@physics.org>2014-05-26 22:23:02 +0200
commit15eacb4e4235a4ece2516e84f191614b4b4e000d (patch)
treed48fa8d8a9ba9965c6fc597f26dba7f30aa9180b /src
parent9c8d90d851a90f1c62d791f6c076eacebc59f12e (diff)
partialator: Restore minimum number of observations for PR
Diffstat (limited to 'src')
-rw-r--r--src/post-refinement.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/post-refinement.c b/src/post-refinement.c
index 2b2e1df9..6e9250d0 100644
--- a/src/post-refinement.c
+++ b/src/post-refinement.c
@@ -501,13 +501,15 @@ static double pr_iterate(Crystal *cr, const RefList *full,
Reflection *match;
double gradients[NUM_PARAMS];
- if ( (get_intensity(refl) < 3.0*get_esd_intensity(refl))
- || (get_partiality(refl) < MIN_PART_REFINE) ) continue;
-
/* Find the full version */
get_indices(refl, &ha, &ka, &la);
match = find_refl(full, ha, ka, la);
if ( match == NULL ) continue;
+
+ if ( (get_intensity(refl) < 3.0*get_esd_intensity(refl))
+ || (get_partiality(refl) < MIN_PART_REFINE)
+ || (get_redundancy(match) < 2) ) continue;
+
I_full = get_intensity(match);
/* Actual measurement of this reflection from this pattern? */