aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libcrystfel/src/index.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libcrystfel/src/index.c b/libcrystfel/src/index.c
index 94a66566..8c1f52e5 100644
--- a/libcrystfel/src/index.c
+++ b/libcrystfel/src/index.c
@@ -485,6 +485,16 @@ static int try_indexer(struct image *image, IndexingMethod indm,
continue;
}
+ /* Peak alignment check if requested */
+ if ( ipriv->flags & INDEXING_CHECK_PEAKS )
+ {
+ if ( !peak_sanity_check(image, &cr, 1) ) {
+ crystal_set_user_flag(cr, 1);
+ n_bad++;
+ continue;
+ }
+ }
+
/* Don't do similarity check if this crystal is bad */
if ( crystal_get_user_flag(cr) ) continue;