diff options
Diffstat (limited to 'src/gui_peaksearch.c')
-rw-r--r-- | src/gui_peaksearch.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gui_peaksearch.c b/src/gui_peaksearch.c index 3aa9c3f6..7fb4680f 100644 --- a/src/gui_peaksearch.c +++ b/src/gui_peaksearch.c @@ -94,6 +94,14 @@ void update_peaks(struct crystfelproject *proj) image->filename, image->ev, proj->peak_search_params.half_pixel_shift); + if ( proj->peak_search_params.revalidate ) { + validate_peaks(image, + proj->peak_search_params.min_snr, + proj->peak_search_params.pk_inn, + proj->peak_search_params.pk_mid, + proj->peak_search_params.pk_out, + 1, 0); + } break; default: @@ -320,6 +328,9 @@ static void peaksearch_algo_changed(GtkWidget *combo, add_check_param(proj->peak_params, "Half pixel shift", &proj->peak_search_params.half_pixel_shift, proj); + add_check_param(proj->peak_params, "Check peaks first", + &proj->peak_search_params.revalidate, + proj); } else if ( strcmp(algo_id, "cxi") == 0 ) { ERROR("algo_id should be hdf5, not cxi\n"); |