aboutsummaryrefslogtreecommitdiff
path: root/src/post-refinement.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-02-03 11:56:11 +0100
committerThomas White <taw@physics.org>2012-02-22 15:27:13 +0100
commit4398834ad2897c83987d8537ea305d84f6d7b64c (patch)
treea4bcef2eb052a15b8ea8beffa35599eff3040446 /src/post-refinement.c
parentacde580b102dcfd09ad65bc1ca6078413707d19a (diff)
Don't try to use unscalable reflections for post refinement
Diffstat (limited to 'src/post-refinement.c')
-rw-r--r--src/post-refinement.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/post-refinement.c b/src/post-refinement.c
index ffa9dbcc..da7c86b6 100644
--- a/src/post-refinement.c
+++ b/src/post-refinement.c
@@ -237,9 +237,7 @@ double mean_partial_dev(struct image *image, struct cpeak *spots, int n,
kind = spots[h].k;
lind = spots[h].l;
- /* Don't attempt to use spots with very small
- * partialities, since it won't be accurate. */
- if ( spots[h].p < 0.1 ) continue;
+ if ( !spots[h].scalable ) continue;
/* Actual measurement of this reflection from this
* pattern? */
@@ -309,9 +307,7 @@ double pr_iterate(struct image *image, double *i_full, const char *sym,
kind = spots[h].k;
lind = spots[h].l;
- /* Don't attempt to use spots with very small
- * partialities, since it won't be accurate. */
- if ( spots[h].p < 0.1 ) continue;
+ if ( !spots[h].scalable ) continue;
/* Actual measurement of this reflection from this
* pattern? */