aboutsummaryrefslogtreecommitdiff
path: root/src/index.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2011-08-29 03:13:34 -0700
committerThomas White <taw@physics.org>2012-02-22 15:27:37 +0100
commit7928d36dd3c0f0a2e628d865192511fd655f973e (patch)
tree65084a380433875c9b8ccf50837cf1951688fad4 /src/index.c
parentb1a4789edce25cf267f64e539e8085bda9c91d61 (diff)
Change the sanity check so that it does what we say it does
Diffstat (limited to 'src/index.c')
-rw-r--r--src/index.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/index.c b/src/index.c
index 862f5145..ced8bbb8 100644
--- a/src/index.c
+++ b/src/index.c
@@ -30,6 +30,7 @@
#include "index.h"
#include "index-priv.h"
#include "reax.h"
+#include "geometry.h"
/* Base class constructor for unspecialised indexing private data */
@@ -204,8 +205,12 @@ void index_pattern(struct image *image, UnitCell *cell, IndexingMethod *indm,
if ( new_cell == NULL ) continue;
/* Sanity check */
+ image->reflections = find_intersections(image,
+ new_cell);
if ( !config_insane &&
- !peak_sanity_check(image, new_cell, 0, 0.1) ) {
+ !peak_sanity_check(image->reflections,
+ image->features) )
+ {
cell_free(new_cell);
continue;
}