aboutsummaryrefslogtreecommitdiff
path: root/src/gui_index.c
diff options
context:
space:
mode:
authorAlexandra Tolstikova <alexandra.tolstikova@desy.de>2022-09-21 14:22:19 +0200
committerThomas White <taw@physics.org>2022-09-21 14:22:54 +0200
commit28b263b02c1029741c89d35b5f726889eb2f1da7 (patch)
tree78b0cf5330c30be9d09f9d240540353a7cf003ea /src/gui_index.c
parent1f53f659e757cc7d4704a885bab50f7060231d16 (diff)
asdf: Add fast mode
This adds an optional fast mode for asdf indexing, which is around 3 times faster with only a few percent lower success rate.
Diffstat (limited to 'src/gui_index.c')
-rw-r--r--src/gui_index.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui_index.c b/src/gui_index.c
index b629c751..660dac1c 100644
--- a/src/gui_index.c
+++ b/src/gui_index.c
@@ -577,6 +577,7 @@ static void run_indexing_once(struct crystfelproject *proj)
struct xgandalf_options *xgandalf_opts;
struct pinkindexer_options *pinkIndexer_opts;
struct fromfile_options *fromfile_opts;
+ struct asdf_options *asdf_opts;
char *old_cwd;
char *tmpdir;
int r;
@@ -613,7 +614,8 @@ static void run_indexing_once(struct crystfelproject *proj)
&xgandalf_opts,
&pinkIndexer_opts,
&felix_opts,
- &fromfile_opts);
+ &fromfile_opts,
+ &asdf_opts);
ipriv = setup_indexing(methods, cell,
proj->indexing_params.tols,
@@ -623,7 +625,7 @@ static void run_indexing_once(struct crystfelproject *proj)
1,
taketwoopts, xgandalf_opts,
pinkIndexer_opts, felix_opts,
- NULL);
+ NULL, asdf_opts);
free(methods);
index_pattern(proj->cur_image, ipriv);