aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2017-06-27 10:28:45 +0200
committerThomas White <taw@physics.org>2017-06-27 10:28:45 +0200
commit61d8d5cf74fb962a25742c7547b7450414ae5a5b (patch)
tree04f785a089ad899275f42a46e20d027bab910eb8
parent80c6061730c2a6a02b9eea77140026ff6b822856 (diff)
If prediction refinement fails, don't carry on and check the cell
Doing so results in one crystal being counted as bad twice, which messes up the logic which follows.
-rw-r--r--libcrystfel/src/index.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libcrystfel/src/index.c b/libcrystfel/src/index.c
index 685d0b69..9bcf5e15 100644
--- a/libcrystfel/src/index.c
+++ b/libcrystfel/src/index.c
@@ -345,6 +345,7 @@ static int try_indexer(struct image *image, IndexingMethod indm,
if ( refine_prediction(image, cr) ) {
crystal_set_user_flag(cr, 1);
n_bad++;
+ continue;
}
if ( (indm & INDEXING_CHECK_CELL_COMBINATIONS)