aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libcrystfel/src/predict-refine.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libcrystfel/src/predict-refine.c b/libcrystfel/src/predict-refine.c
index 6facc6c3..84e3c5bf 100644
--- a/libcrystfel/src/predict-refine.c
+++ b/libcrystfel/src/predict-refine.c
@@ -250,6 +250,9 @@ static int pair_peaks(struct image *image, Crystal *cr,
k = lrint(kd);
l = lrint(ld);
+ /* Don't pair with 000, because that can cause trouble later */
+ if ( (h==0) && (k==0) && (l==0) ) continue;
+
refl = reflection_new(h, k, l);
if ( refl == NULL ) {
ERROR("Failed to create reflection\n");