diff options
author | Thomas White <taw@physics.org> | 2010-06-07 14:42:36 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2010-06-07 14:42:36 +0200 |
commit | 8b54a98a5e644e1b81f3d68ef49e37112d3e3e2d (patch) | |
tree | d396636ff55aa475c9ae7a126cb1b55134f1f5db | |
parent | 623497dae0e4eb46dca1236a2a2884e9f17f1509 (diff) |
indexamajig: Make sanity check optional
-rw-r--r-- | src/indexamajig.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/indexamajig.c b/src/indexamajig.c index e9f936b1..0fb97bfe 100644 --- a/src/indexamajig.c +++ b/src/indexamajig.c @@ -58,6 +58,7 @@ struct process_args int config_simulate; int config_nomatch; int config_unpolar; + int config_sanity; IndexingMethod indm; const double *intensities; const unsigned int *counts; @@ -121,6 +122,8 @@ static void show_help(const char *s) " model, just proceed with the one generated by the\n" " auto-indexing procedure.\n" " --unpolarized Don't correct for the polarisation of the X-rays.\n" +" --check-sanity Check that indexed locations approximately correspond\n" +" with detected peaks.\n" "\n\nOptions for greater performance or verbosity:\n\n" " --verbose Be verbose about indexing.\n" " --gpu Use the GPU to speed up the simulation.\n" @@ -329,7 +332,8 @@ static void *process_image(void *pargsv) if ( image.indexed_cell == NULL ) goto done; /* Sanity check */ - if ( !peak_sanity_check(&image, image.indexed_cell) ) { + if ( pargs->config_sanity + && !peak_sanity_check(&image, image.indexed_cell) ) { STATUS("Failed peak sanity check.\n"); goto done; } else { @@ -404,6 +408,7 @@ int main(int argc, char *argv[]) int config_verbose = 0; int config_alternate = 0; int config_unpolar = 0; + int config_sanity = 0; IndexingMethod indm; char *indm_str = NULL; UnitCell *cell; @@ -440,6 +445,7 @@ int main(int argc, char *argv[]) {"pdb", 1, NULL, 'p'}, {"prefix", 1, NULL, 'x'}, {"unpolarized", 0, &config_unpolar, 1}, + {"check-sanity", 0, &config_sanity, 1}, {0, 0, NULL, 0} }; @@ -595,6 +601,7 @@ int main(int argc, char *argv[]) pargs->config_simulate = config_simulate; pargs->config_nomatch = config_nomatch; pargs->config_unpolar = config_unpolar; + pargs->config_sanity = config_sanity; pargs->cell = cell; pargs->indm = indm; pargs->intensities = intensities; |