aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2019-08-29 14:10:27 +0200
committerThomas White <taw@physics.org>2019-08-29 14:10:27 +0200
commitb2607ea16013f71fb36ab4d65d216ece2a5f542c (patch)
tree900af6f1a1ef06d9900625539f84f0f529c057df /libcrystfel
parent7836e89222bf587639adc1ad06dfd6d216d25379 (diff)
Use compare_cell_parameters for after-refinement cell check
No need to do all the cell reduction stuff again.
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/src/index.c5
1 files changed, 3 insertions, 2 deletions
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;