diff options
author | Thomas White <taw@physics.org> | 2020-10-26 15:06:38 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-10-26 15:08:50 +0100 |
commit | 2089e6e3c0a34430239dce596bc27db30611ac2f (patch) | |
tree | 0b269fba30065b28c51ca3456313d26347fc58e5 /libcrystfel/src/index.c | |
parent | 6819e268a8401fec0001812e7612909b3211fab1 (diff) |
Label all uses of cell tolerances
I'm sick of fixing this same issue over and over again.
New rule: any code handling unit cell tolerances MUST be labelled with
details of units.
Diffstat (limited to 'libcrystfel/src/index.c')
-rw-r--r-- | libcrystfel/src/index.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libcrystfel/src/index.c b/libcrystfel/src/index.c index f9c02c28..457fd7fe 100644 --- a/libcrystfel/src/index.c +++ b/libcrystfel/src/index.c @@ -354,6 +354,7 @@ IndexingMethod *parse_indexing_methods(const char *method_list, } +/* 'tols' is in frac (not %) and radians */ IndexingPrivate *setup_indexing(const char *method_list, UnitCell *cell, const DataTemplate *dtempl, float *tols, IndexingFlags flags, @@ -776,6 +777,7 @@ static int try_indexer(struct image *image, IndexingMethod indm, for ( j=0; j<this_crystal; j++ ) { Crystal *that_cr = image->crystals[j]; + /* 'tols' is in frac (not %) and radians */ const double tols[] = {0.1, 0.1, 0.1, deg2rad(5.0), deg2rad(5.0), |