From 309b65d75993abbc9804b392117baea3a1101e3a Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 3 May 2023 11:43:00 +0200 Subject: Move peak search parameters into separate structure This change takes the peak parameters structure from gui_project.h, moves it to libcrystfel/peaks.h and uses it everywhere. It should slightly reduce the hassle involved with adding a new parameter. Four parameters (noisefilter, median_filter, check_hdf5_snr, use_saturated) were previously not part of the GUI project structure. Now they are, via the new structure. However, they are not yet exposed via the GUI and just take their default values. --- src/gui_project.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/gui_project.c') diff --git a/src/gui_project.c b/src/gui_project.c index 11f27059..32d6473c 100644 --- a/src/gui_project.c +++ b/src/gui_project.c @@ -1259,6 +1259,10 @@ int default_project(struct crystfelproject *proj) proj->peak_search_params.pk_out = 7.0; proj->peak_search_params.half_pixel_shift = 1; proj->peak_search_params.revalidate = 1; + proj->peak_search_params.noisefilter = 0; + proj->peak_search_params.median_filter = 0; + proj->peak_search_params.check_hdf5_snr = 0; + proj->peak_search_params.use_saturated = 1; proj->indexing_params.cell_file = NULL; proj->indexing_params.indexing_methods = NULL; -- cgit v1.2.3