diff options
author | Thomas White <taw@physics.org> | 2016-10-24 13:40:57 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2016-10-24 13:40:57 +0200 |
commit | a2f6ba9952704e213b9a425fac5a6b848c6a78e5 (patch) | |
tree | 6ee13d2031955d6da6e021a69d79407468af7580 /libcrystfel/src/taketwo.c | |
parent | 0dd2f095933d7ef34ef4cbfa6354b7f3644a408e (diff) |
Separate tolerance for matrix trace
Diffstat (limited to 'libcrystfel/src/taketwo.c')
-rw-r--r-- | libcrystfel/src/taketwo.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libcrystfel/src/taketwo.c b/libcrystfel/src/taketwo.c index 40e2fdf9..7362a4c6 100644 --- a/libcrystfel/src/taketwo.c +++ b/libcrystfel/src/taketwo.c @@ -88,6 +88,9 @@ struct taketwo_private /* Tolerance for two angles to be considered the same */ #define ANGLE_TOLERANCE (deg2rad(1.0)) +/* Tolerance for rot_mats_are_similar */ +#define TRACE_TOLERANCE (deg2rad(8.0)) + /** TODO: * * - May need to be capable of playing with the tolerances/#defined stuff. @@ -277,7 +280,7 @@ static int rot_mats_are_similar(gsl_matrix *rot1, gsl_matrix *rot2) tr = matrix_trace(mul); gsl_matrix_free(mul); - return tr < sqrt(4.0*(1.0-cos(ANGLE_TOLERANCE)));; + return tr < sqrt(4.0*(1.0-cos(TRACE_TOLERANCE)));; } |