From b2607ea16013f71fb36ab4d65d216ece2a5f542c Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 29 Aug 2019 14:10:27 +0200 Subject: Use compare_cell_parameters for after-refinement cell check No need to do all the cell reduction stuff again. --- libcrystfel/src/index.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libcrystfel') diff --git a/libcrystfel/src/index.c b/libcrystfel/src/index.c index cb6b979b..af4385cd 100644 --- a/libcrystfel/src/index.c +++ b/libcrystfel/src/index.c @@ -652,8 +652,9 @@ static int try_indexer(struct image *image, IndexingMethod indm, } /* After refinement unit cell check if requested */ - if ( check_cell(ipriv->flags, cr, ipriv->target_cell, - ipriv->tolerance) ) + if ( (ipriv->flags & INDEXING_CHECK_CELL) + && !compare_cell_parameters(crystal_get_cell(cr), ipriv->target_cell, + ipriv->tolerance) ) { crystal_set_user_flag(cr, 1); continue; -- cgit v1.2.3