diff options
author | Thomas White <taw@physics.org> | 2019-08-29 14:10:27 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2019-08-29 14:10:27 +0200 |
commit | b2607ea16013f71fb36ab4d65d216ece2a5f542c (patch) | |
tree | 900af6f1a1ef06d9900625539f84f0f529c057df /libcrystfel/src | |
parent | 7836e89222bf587639adc1ad06dfd6d216d25379 (diff) |
Use compare_cell_parameters for after-refinement cell check
No need to do all the cell reduction stuff again.
Diffstat (limited to 'libcrystfel/src')
-rw-r--r-- | libcrystfel/src/index.c | 5 |
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; |