aboutsummaryrefslogtreecommitdiff
path: root/src/predict-refine.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/predict-refine.c')
-rw-r--r--src/predict-refine.c7
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;
}