aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/index.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2019-09-06 11:02:48 +0200
committerThomas White <taw@physics.org>2019-09-06 11:02:48 +0200
commit170391d34095b8a0439f987dd08fda7cb8213aba (patch)
tree1324b83e262f6da557023c728df12f32444530ae /libcrystfel/src/index.c
parent6d931c8495cba9589a03c64c91a9fb58d5cfea44 (diff)
Use new peak check only when doing multi-lattice indexing
Diffstat (limited to 'libcrystfel/src/index.c')
-rw-r--r--libcrystfel/src/index.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libcrystfel/src/index.c b/libcrystfel/src/index.c
index 36d7b84b..4c82e868 100644
--- a/libcrystfel/src/index.c
+++ b/libcrystfel/src/index.c
@@ -663,7 +663,8 @@ static int try_indexer(struct image *image, IndexingMethod indm,
/* Peak alignment check if requested */
if ( ipriv->flags & INDEXING_CHECK_PEAKS )
{
- if ( !peak_sanity_check(image, &cr, 1) ) {
+ int mm = ipriv->flags & INDEXING_MULTI;
+ if ( !indexing_peak_check(image, &cr, 1, mm) ) {
crystal_set_user_flag(cr, 1);
continue;
}