aboutsummaryrefslogtreecommitdiff
path: root/src/gui_index.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2024-01-10 16:43:29 +0100
committerThomas White <taw@physics.org>2024-01-10 16:47:51 +0100
commit185941439dd7aa7211a5d98b0a543d8ad717d65e (patch)
treef3d0827c2033a9590946656b187cdd19e50083bc /src/gui_index.c
parent7c96ec848d3487d95b6733bbd4e29b5e2b77f5c6 (diff)
GUI: Track Millepede options through project
Note that the indexamajig option --max-mille-level isn't implemented yet.
Diffstat (limited to 'src/gui_index.c')
-rw-r--r--src/gui_index.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui_index.c b/src/gui_index.c
index aa2301ef..14f0906c 100644
--- a/src/gui_index.c
+++ b/src/gui_index.c
@@ -140,6 +140,8 @@ static void get_indexing_opts(struct crystfelproject *proj,
proj->indexing_params.exclude_nonhits = crystfel_indexing_opts_get_exclude_blanks(opts);
proj->indexing_params.exclude_peaks = crystfel_indexing_opts_get_exclude_peaks(opts);
proj->indexing_params.exclude_refls = crystfel_indexing_opts_get_exclude_reflections(opts);
+ proj->indexing_params.millepede = crystfel_indexing_opts_get_millepede(opts,
+ &proj->indexing_params.max_mille_level);
proj->indexing_params.metadata_to_copy = crystfel_indexing_opts_get_metadata_to_copy(opts,
&proj->indexing_params.n_metadata);
}
@@ -383,6 +385,9 @@ static void set_indexing_opts(struct crystfelproject *proj,
proj->indexing_params.exclude_peaks);
crystfel_indexing_opts_set_exclude_reflections(opts,
proj->indexing_params.exclude_refls);
+ crystfel_indexing_opts_set_millepede(opts,
+ proj->indexing_params.millepede,
+ proj->indexing_params.max_mille_level);
crystfel_indexing_opts_set_metadata_to_copy(opts,
proj->indexing_params.metadata_to_copy,
proj->indexing_params.n_metadata);
@@ -997,6 +1002,8 @@ static char **indexamajig_command_line(const char *geom_filename,
if ( indexing_params->exclude_nonhits ) add_arg(args, n_args++, "--no-non-hits-in-stream");
if ( indexing_params->exclude_peaks ) add_arg(args, n_args++, "--no-peaks-in-stream");
if ( indexing_params->exclude_refls ) add_arg(args, n_args++, "--no-refls-in-stream");
+ if ( indexing_params->millepede ) add_arg(args, n_args++, "--millepede");
+ if ( indexing_params->max_mille_level ) add_arg(args, n_args++, "--max-mille-level");
for ( i=0; i<indexing_params->n_metadata; i++ ) {
add_arg_string(args, n_args++, "copy-header",
indexing_params->metadata_to_copy[i]);