aboutsummaryrefslogtreecommitdiff
path: root/src/gui_project.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2023-05-03 11:43:00 +0200
committerThomas White <taw@physics.org>2023-05-05 10:59:45 +0200
commit309b65d75993abbc9804b392117baea3a1101e3a (patch)
tree361ca8f1cc935d621e0d3f1a16c6426525490b24 /src/gui_project.c
parent5c1373e53709bd59403716b497c8c6c94b9143c4 (diff)
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.
Diffstat (limited to 'src/gui_project.c')
-rw-r--r--src/gui_project.c4
1 files changed, 4 insertions, 0 deletions
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;