diff options
author | Thomas White <taw@physics.org> | 2015-04-24 15:16:13 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2015-04-28 14:47:19 +0200 |
commit | e6fac71fef03bbd13eaa783067799d9c1ac67c1f (patch) | |
tree | ba847959dd4fe61c5dd76649fdf8554dc7354911 | |
parent | 51fb41bc2c56054dbe6d6487196dc09ce6e479e0 (diff) |
Reject refinement solutions which lead to low numbers of pairings
-rw-r--r-- | src/predict-refine.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/predict-refine.c b/src/predict-refine.c index 612e979c..70e523e4 100644 --- a/src/predict-refine.c +++ b/src/predict-refine.c @@ -743,6 +743,13 @@ int refine_prediction(struct image *image, Crystal *cr) crystal_set_reflections(cr, NULL); reflist_free(reflist); + + n = pair_peaks(image, cr, NULL, rps); free(rps); + if ( n < 10 ) { + ERROR("Too few paired peaks (%i) after refinement.\n", n); + return 1; + } + return 0; } |