diff options
author | Thomas White <taw@physics.org> | 2021-03-25 15:24:36 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2021-03-25 16:16:01 +0100 |
commit | 31ab21aba60d592d7fc78a302e2f5620727445ee (patch) | |
tree | ffbe06942043943ec5df9cfcf2ed4a5c9f4e0a5c /libcrystfel/src/index.c | |
parent | 1440b2b897845b713450ef1bc8460d2d6d7bb337 (diff) |
indexamajig: Add --camera-length-estimate
Unfortunately, PinkIndexer needs the real camera length for its centre
refinement. Giving a fake value and scaling the resulting shift does
not work - the indexing rate drops with even a small error.
Ideally, this would work in the same way as --wavelength-estimate, by
using a static value from the geometry file if it's given. However,
this is rather complicated to implement because of the way all the units
stuff is implemented. Therefore, this is left as an improvement for the
future.
Diffstat (limited to 'libcrystfel/src/index.c')
-rw-r--r-- | libcrystfel/src/index.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libcrystfel/src/index.c b/libcrystfel/src/index.c index 1c78cc58..37ced03d 100644 --- a/libcrystfel/src/index.c +++ b/libcrystfel/src/index.c @@ -204,6 +204,7 @@ static char *friendly_indexer_name(IndexingMethod m) static void *prepare_method(IndexingMethod *m, UnitCell *cell, double wavelength_estimate, + double clen_estimate, struct xgandalf_options *xgandalf_opts, struct pinkIndexer_options* pinkIndexer_opts, struct felix_options *felix_opts, @@ -254,7 +255,8 @@ static void *prepare_method(IndexingMethod *m, UnitCell *cell, case INDEXING_PINKINDEXER : priv = pinkIndexer_prepare(m, cell, pinkIndexer_opts, - wavelength_estimate); + wavelength_estimate, + clen_estimate); break; default : @@ -331,6 +333,7 @@ IndexingPrivate *setup_indexing(const char *method_list, float *tols, IndexingFlags flags, double wavelength_estimate, + double clen_estimate, int n_threads, struct taketwo_options *ttopts, struct xgandalf_options *xgandalf_opts, @@ -402,6 +405,7 @@ IndexingPrivate *setup_indexing(const char *method_list, ipriv->engine_private[i] = prepare_method(&methods[i], cell, wavelength_estimate, + clen_estimate, xgandalf_opts, pinkIndexer_opts, felix_opts, |