aboutsummaryrefslogtreecommitdiff
path: root/src/index.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-02-04 15:26:48 +0100
committerThomas White <taw@physics.org>2012-02-22 15:27:13 +0100
commit155ca0064e5605a345d141202d6cbf7dce9a220b (patch)
tree62544ea055ea0ca67d9c55f5fd6cc166b386fcab /src/index.c
parent59ae49baa64e841aaf3a5030b92fb3bce7d984e5 (diff)
indexamajig: Allow the user to switch off the sanity check if they want
Diffstat (limited to 'src/index.c')
-rw-r--r--src/index.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/index.c b/src/index.c
index 57399c61..5675eb0f 100644
--- a/src/index.c
+++ b/src/index.c
@@ -129,7 +129,8 @@ void map_all_peaks(struct image *image)
void index_pattern(struct image *image, UnitCell *cell, IndexingMethod *indm,
- int cellr, int verbose, IndexingPrivate **ipriv)
+ int cellr, int verbose, IndexingPrivate **ipriv,
+ int config_insane)
{
int i;
int n = 0;
@@ -207,7 +208,8 @@ void index_pattern(struct image *image, UnitCell *cell, IndexingMethod *indm,
if ( new_cell == NULL ) continue;
/* Sanity check */
- if ( !peak_sanity_check(image, new_cell, 0, 0.1) ) {
+ if ( !config_insane &&
+ !peak_sanity_check(image, new_cell, 0, 0.1) ) {
STATUS("Failed peak sanity check.\n");
cell_free(new_cell);
continue;