diff options
author | Thomas White <taw@physics.org> | 2024-01-10 16:43:29 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2024-01-10 16:47:51 +0100 |
commit | 185941439dd7aa7211a5d98b0a543d8ad717d65e (patch) | |
tree | f3d0827c2033a9590946656b187cdd19e50083bc /src/gui_project.c | |
parent | 7c96ec848d3487d95b6733bbd4e29b5e2b77f5c6 (diff) |
GUI: Track Millepede options through project
Note that the indexamajig option --max-mille-level isn't implemented
yet.
Diffstat (limited to 'src/gui_project.c')
-rw-r--r-- | src/gui_project.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gui_project.c b/src/gui_project.c index 32d6473c..c77e2704 100644 --- a/src/gui_project.c +++ b/src/gui_project.c @@ -429,6 +429,12 @@ static void parse_stream_opt(const char *key, const char *val, if ( strcmp(key, "stream.exclude_refls") == 0 ) { ip->exclude_refls = parse_int(val); } + if ( strcmp(key, "stream.millepede") == 0 ) { + ip->millepede = parse_int(val); + } + if ( strcmp(key, "stream.max_mille_level") == 0 ) { + ip->max_mille_level = parse_int(val); + } if ( strcmp(key, "stream.metadata") == 0 ) { add_metadata_to_copy(ip, val); } @@ -1048,6 +1054,10 @@ int save_project(struct crystfelproject *proj) proj->indexing_params.exclude_peaks); fprintf(fh, "stream.exclude_refls %i\n", proj->indexing_params.exclude_refls); + fprintf(fh, "stream.millepede %i\n", + proj->indexing_params.millepede); + fprintf(fh, "stream.max_mille_level %i\n", + proj->indexing_params.max_mille_level); if ( proj->indexing_params.metadata_to_copy != NULL ) { int i; for ( i=0; i<proj->indexing_params.n_metadata; i++ ) { @@ -1287,6 +1297,8 @@ int default_project(struct crystfelproject *proj) proj->indexing_params.exclude_nonhits = 0; proj->indexing_params.exclude_peaks = 0; proj->indexing_params.exclude_refls = 0; + proj->indexing_params.millepede = 1; + proj->indexing_params.max_mille_level = 1; proj->indexing_params.metadata_to_copy = NULL; proj->indexing_params.n_metadata = 0; proj->indexing_params.fix_profile_radius = 0.01e9; |