diff options
Diffstat (limited to 'src/index.c')
-rw-r--r-- | src/index.c | 6 |
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; |