diff options
author | Thomas White <taw@physics.org> | 2021-02-18 09:36:13 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2021-02-18 09:36:13 +0100 |
commit | f1f1d45b612a1b99acaea20a99ff2bcebee8df3f (patch) | |
tree | ccf6ddd7c972d2c175354161b37537c61bca3f86 /src/gui_project.c | |
parent | e0437375017e504124cab53e5d19f4da499e88e7 (diff) |
GUI: Track separately whether ambiguity operation should be used
This allows values to be held for both, which is more helpful.
Diffstat (limited to 'src/gui_project.c')
-rw-r--r-- | src/gui_project.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui_project.c b/src/gui_project.c index af50dec2..abc80276 100644 --- a/src/gui_project.c +++ b/src/gui_project.c @@ -339,6 +339,9 @@ static void parse_ambi_opt(const char *key, const char *val, if ( strcmp(key, "ambi.source_sym") == 0 ) { proj->ambi_params.source_sym = strdup(val); } + if ( strcmp(key, "ambi.use_operator") == 0 ) { + proj->ambi_params.use_operator = parse_int(val); + } if ( strcmp(key, "ambi.operator") == 0 ) { proj->ambi_params.operator = strdup(val); } @@ -919,6 +922,7 @@ int save_project(struct crystfelproject *proj) fprintf(fh, "ambi.niter %i\n", proj->ambi_params.niter); fprintf(fh, "ambi.ncorr %i\n", proj->ambi_params.ncorr); fprintf(fh, "ambi.use_ncorr %i\n", proj->ambi_params.use_ncorr); + fprintf(fh, "ambi.use_operator %i\n", proj->ambi_params.use_operator); if ( proj->ambi_params.sym != NULL ) { fprintf(fh, "ambi.sym %s\n", proj->ambi_params.sym); } @@ -1123,6 +1127,7 @@ void default_project(struct crystfelproject *proj) proj->ambi_params.sym = NULL; proj->ambi_params.source_sym = NULL; proj->ambi_params.operator = NULL; + proj->ambi_params.use_operator = 1; proj->merging_params.model = strdup("unity"); proj->merging_params.symmetry = strdup("1"); |