aboutsummaryrefslogtreecommitdiff
path: root/src/gui_project.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2021-02-17 12:19:51 +0100
committerThomas White <taw@physics.org>2021-02-17 12:19:51 +0100
commita2d88b99434ce0a6a3d663b780c424b27ce95a46 (patch)
tree3b3a1529e65b276a844516aacb74ef9b2c87369a /src/gui_project.c
parent45509f945926dfcfba8800578e430c4b3979834b (diff)
GUI: Plumbing, ready to run ambigator job
Diffstat (limited to 'src/gui_project.c')
-rw-r--r--src/gui_project.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gui_project.c b/src/gui_project.c
index 29d91b94..aea76d1e 100644
--- a/src/gui_project.c
+++ b/src/gui_project.c
@@ -461,6 +461,11 @@ static void handle_var(const char *key, const char *val,
proj->merging_new_job_title = strdup(val);
}
+ if ( strcmp(key, "ambi.new_job_title") == 0 ) {
+ free(proj->ambi_new_job_title);
+ proj->ambi_new_job_title = strdup(val);
+ }
+
if ( strcmp(key, "indexing.backend") == 0 ) {
proj->indexing_backend_selected = find_backend(val, proj);
}
@@ -923,6 +928,10 @@ int save_project(struct crystfelproject *proj)
if ( proj->ambi_operator != NULL ) {
fprintf(fh, "ambi.operator %s\n", proj->ambi_operator);
}
+ if ( proj->ambi_new_job_title != NULL ) {
+ fprintf(fh, "ambi.new_job_title %s\n",
+ proj->ambi_new_job_title);
+ }
fprintf(fh, "merging.model %s\n",
proj->merging_params.model);
@@ -1030,9 +1039,11 @@ void default_project(struct crystfelproject *proj)
proj->cur_image = NULL;
proj->indexing_opts = NULL;
proj->merging_opts = NULL;
+ proj->ambi_opts = NULL;
proj->n_running_tasks = 0;
proj->indexing_new_job_title = NULL;
proj->merging_new_job_title = NULL;
+ proj->ambi_new_job_title = NULL;
proj->indexing_backend_selected = 0;
proj->merging_backend_selected = 0;