aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-03-17 12:12:14 +0100
committerThomas White <taw@physics.org>2020-07-29 18:42:57 +0200
commite173da81d1bfd011589458963840ca72404177e4 (patch)
tree9611890fbe6667ec4c511dd13f6edd922041ca68 /src
parent3972e0d898a73374838d9ea5b69570757f4b161c (diff)
Set method for remaining peak search algorithms
Diffstat (limited to 'src')
-rw-r--r--src/gui_peaksearch.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gui_peaksearch.c b/src/gui_peaksearch.c
index 149aacc8..8bcf5f67 100644
--- a/src/gui_peaksearch.c
+++ b/src/gui_peaksearch.c
@@ -277,7 +277,14 @@ static void peaksearch_algo_changed(GtkWidget *combo,
proj->peak_search_params.max_res,
G_CALLBACK(peaksearch_max_res_sig), proj);
- } /* else no parameters! */
+ } else if ( strcmp(algo_id, "hdf5") == 0 ) {
+ proj->peak_search_params.method = PEAK_HDF5;
+
+ } else if ( strcmp(algo_id, "cxi") == 0 ) {
+ proj->peak_search_params.method = PEAK_CXI;
+ } else {
+ ERROR("Unrecognised peak search '%s'\n", algo_id);
+ }
/* FIXME: Radii */