aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-05-05 14:10:27 +0200
committerThomas White <taw@physics.org>2020-07-29 18:42:57 +0200
commite5f570a6e29f85f8580bb57bc6d085ba50c4798a (patch)
tree03f16a191e338e97b6b9f9f6083d297e2d0573e9
parent9a45383ceca04f76aab846dc8c998082db85d2b7 (diff)
Load/save show_peaks
-rw-r--r--src/crystfel_gui.c1
-rw-r--r--src/gui_project.c5
2 files changed, 6 insertions, 0 deletions
diff --git a/src/crystfel_gui.c b/src/crystfel_gui.c
index 62337004..818a5747 100644
--- a/src/crystfel_gui.c
+++ b/src/crystfel_gui.c
@@ -722,6 +722,7 @@ int main(int argc, char *argv[])
dtempl);
}
update_imageview(&proj);
+ update_peaks(&proj);
}
/* Initialise backend */
diff --git a/src/gui_project.c b/src/gui_project.c
index 65c06032..48102ac6 100644
--- a/src/gui_project.c
+++ b/src/gui_project.c
@@ -199,6 +199,10 @@ static void handle_var(const char *key, const char *val,
proj->peak_search_params.revalidate = parse_int(val);
}
+ if ( strcmp(key, "show_peaks") == 0 ) {
+ proj->show_peaks = parse_int(val);
+ }
+
if ( strcmp(key, "backend") == 0 ) {
proj->backend = parse_backend(val);
}
@@ -370,6 +374,7 @@ int save_project(struct crystfelproject *proj)
fprintf(fh, "peak_search_params.revalidate %i\n",
proj->peak_search_params.revalidate);
+ fprintf(fh, "show_peaks %i\n", proj->show_peaks);
fprintf(fh, "backend %s\n", proj->backend->name);
fprintf(fh, "-----\n");