diff options
author | Thomas White <taw@bitwiz.org.uk> | 2011-01-26 14:08:01 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:12 +0100 |
commit | 0358ad008302c93675089f0265a68e6e1997da93 (patch) | |
tree | 670d482ac40ee3868b77139e331da540e7c2ddab /src/index.c | |
parent | 329134c42a76339438e4189e2cde05895e17ab62 (diff) |
indexamajig: Remove "--check-sanity" option
Why wouldn't you want sane results?
Diffstat (limited to 'src/index.c')
-rw-r--r-- | src/index.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/index.c b/src/index.c index 23a8016a..e3926c8e 100644 --- a/src/index.c +++ b/src/index.c @@ -200,12 +200,19 @@ void index_pattern(struct image *image, UnitCell *cell, IndexingMethod *indm, break; } - image->indexed_cell = new_cell; - if ( new_cell != NULL ) { - STATUS("Matched on attempt %i.\n", i); + /* No cell? Move on to the next method */ + if ( new_cell == NULL ) { + goto done; + } + + /* Sanity check */ + if ( !peak_sanity_check(image, new_cell, 0, 0.1) ) { + STATUS("Failed peak sanity check.\n"); goto done; } + image->indexed_cell = new_cell; + } /* Move on to the next indexing method */ |