aboutsummaryrefslogtreecommitdiff
path: root/src/peaks.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/peaks.c')
-rw-r--r--src/peaks.c7
1 files changed, 6 insertions, 1 deletions
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++;
}