aboutsummaryrefslogtreecommitdiff
path: root/src/gui_index.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2021-07-14 16:55:44 +0200
committerThomas White <taw@physics.org>2021-07-14 16:55:44 +0200
commit64f8d83d0cee3d886cb170310fe748df33633358 (patch)
tree33b25f8cb36e785bb42527c3cbab48a5484aa134 /src/gui_index.c
parentf199cda9a320f2bd70989698ab5d2f85f921feb5 (diff)
GUI: Add PinkIndexer options to command line
Diffstat (limited to 'src/gui_index.c')
-rw-r--r--src/gui_index.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/gui_index.c b/src/gui_index.c
index f9ba7b6b..ad1206e0 100644
--- a/src/gui_index.c
+++ b/src/gui_index.c
@@ -913,6 +913,35 @@ static char **indexamajig_command_line(const char *geom_filename,
if ( indexing_params->no_peak_check ) add_arg(args, n_args++, "--no-check-peaks");
if ( indexing_params->no_cell_check ) add_arg(args, n_args++, "--no-check-cell");
+ /* PinkIndexer-specific */
+ if ( pinkindexer_used(indexing_params->indexing_methods) ) {
+ add_arg_int(args, n_args++,
+ "pinkIndexer-considered-peaks-count",
+ indexing_params->pinkindexer_cpeaks);
+ if ( indexing_params->pinkindexer_use_max_res ) {
+ add_arg_float(args, n_args++,
+ "pinkIndexer-max-resolution-for-indexing",
+ indexing_params->pinkindexer_max_res);
+ }
+ add_arg_int(args, n_args++,
+ "pinkIndexer-angle-resolution",
+ indexing_params->pinkindexer_angle_density);
+ add_arg_int(args, n_args++,
+ "pinkIndexer-refinement-type",
+ indexing_params->pinkindexer_refinement_type);
+ add_arg_float(args, n_args++,
+ "pinkIndexer-tolerance",
+ indexing_params->pinkindexer_tolerance);
+ if ( indexing_params->pinkindexer_use_refl_radius ) {
+ add_arg_float(args, n_args++,
+ "pinkIndexer-reflection-radius",
+ indexing_params->pinkindexer_refl_radius);
+ }
+ add_arg_float(args, n_args++,
+ "pinkIndexer-max-refinement-disbalance",
+ indexing_params->pinkindexer_max_imbalance);
+ }
+
/* Integration */
add_arg(args, n_args++, "--integration");
add_arg(args, n_args++, indexing_params->integration_method);