diff options
author | Thomas White <taw@physics.org> | 2021-07-23 13:17:52 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2021-07-23 13:17:52 +0200 |
commit | 21679d8e17a80571d09e374094ed3ff2e720bf74 (patch) | |
tree | 0a92f183b90a0b488c51c0aa066b9ff2aaacfb05 /libcrystfel/src | |
parent | 78f369eb0ce0a03cc526db749e5ac3d93d83a806 (diff) |
TakeTwo: Remove unused variables
Diffstat (limited to 'libcrystfel/src')
-rw-r--r-- | libcrystfel/src/indexers/taketwo.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/libcrystfel/src/indexers/taketwo.c b/libcrystfel/src/indexers/taketwo.c index 68b2897c..78921a9f 100644 --- a/libcrystfel/src/indexers/taketwo.c +++ b/libcrystfel/src/indexers/taketwo.c @@ -1169,8 +1169,6 @@ static double obs_to_sol_score(struct TakeTwoCell *ttCell) static void match_all_obs_to_sol(struct TakeTwoCell *ttCell) { int i, j; - double total = 0; - int count = 0; gsl_matrix *solution = ttCell->solution; for (i = 0; i < ttCell->obs_vec_count; i++) @@ -1200,17 +1198,7 @@ static void match_all_obs_to_sol(struct TakeTwoCell *ttCell) } ttCell->obs_vecs[i].assignment = assigned; - - if (smallest != FLT_MAX) - { - double addition = exp(-(1 / RECIP_TOLERANCE) * smallest); - total += addition; - count++; - - } } - - total /= (double)count; } /** |