From 61d8d5cf74fb962a25742c7547b7450414ae5a5b Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 27 Jun 2017 10:28:45 +0200 Subject: 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. --- libcrystfel/src/index.c | 1 + 1 file changed, 1 insertion(+) 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) -- cgit v1.2.3