From 9f6233c33890008ca4a7d5bb8de271acbf9b9c49 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 28 Mar 2014 14:09:04 +0100 Subject: validate_peaks(): Count saturated peaks only if they are being rejected --- libcrystfel/src/peaks.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libcrystfel/src') diff --git a/libcrystfel/src/peaks.c b/libcrystfel/src/peaks.c index 2b326cc0..47bec10c 100644 --- a/libcrystfel/src/peaks.c +++ b/libcrystfel/src/peaks.c @@ -707,8 +707,10 @@ void validate_peaks(struct image *image, double min_snr, } if ( saturated ) { - n_sat++; - if ( !use_saturated ) continue; + if ( !use_saturated ) { + n_sat++; + continue; + } } /* It is possible for the centroid to fall outside the image */ -- cgit v1.2.3