From b9e24104d005957d53d63ff14694dbcb0c70317e Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 29 Apr 2010 18:16:50 +0200 Subject: Make peak detection/indexing statistics more liberal --- src/peaks.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/peaks.c') diff --git a/src/peaks.c b/src/peaks.c index 889565eb..bbcb71bc 100644 --- a/src/peaks.c +++ b/src/peaks.c @@ -479,12 +479,17 @@ void output_intensities(struct image *image, UnitCell *cell, * This will produce further revised coordinates. */ integrate_peak(image, f->x, f->y, &x, &y, &intensity); intensity = f->intensity; - n_close++; } else { integrate_peak(image, hits[i].x, hits[i].y, &x, &y, &intensity); + + } + + if ( (f != NULL) && (d < 30.0) ) { + n_close++; + } else { n_nonclose++; } -- cgit v1.2.3