aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/index.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2019-08-08 11:05:09 +0200
committerThomas White <taw@physics.org>2019-08-16 10:26:59 +0200
commitf6c9932aa1b41e36178a2471e6728c04fb45289a (patch)
treebe3993ec0654ee2f76ff14363a4f30496e38de93 /libcrystfel/src/index.c
parentea74744a59728bd375dda10a9386b502eb5056c2 (diff)
Clarify cell vs reference in comparison functions. Also reindexed vs permuted
Diffstat (limited to 'libcrystfel/src/index.c')
-rw-r--r--libcrystfel/src/index.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libcrystfel/src/index.c b/libcrystfel/src/index.c
index b187e119..b07dd067 100644
--- a/libcrystfel/src/index.c
+++ b/libcrystfel/src/index.c
@@ -542,6 +542,7 @@ void map_all_peaks(struct image *image)
}
+/* Return 0 for cell OK, 1 for cell incorrect */
static int check_cell(IndexingFlags flags, Crystal *cr, UnitCell *target,
double *tolerance)
{
@@ -708,9 +709,9 @@ static int try_indexer(struct image *image, IndexingMethod indm,
/* Don't do similarity check against bad crystals */
if ( crystal_get_user_flag(that_cr) ) continue;
- if ( compare_reindexed_cell_parameters_and_orientation(crystal_get_cell(cr),
- crystal_get_cell(that_cr),
- 0.1, deg2rad(0.5), NULL) )
+ if ( compare_permuted_cell_parameters_and_orientation(crystal_get_cell(cr),
+ crystal_get_cell(that_cr),
+ 0.1, deg2rad(0.5), NULL) )
{
crystal_set_user_flag(cr, 1);
}