From 7928d36dd3c0f0a2e628d865192511fd655f973e Mon Sep 17 00:00:00 2001 From: Thomas White Date: Mon, 29 Aug 2011 03:13:34 -0700 Subject: Change the sanity check so that it does what we say it does --- src/index.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/index.c') 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; } -- cgit v1.2.3