From 636eb6116961296791bae35c40fd9438aa946827 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 8 May 2019 14:37:27 +0200 Subject: Remove image.num_peaks and num_saturated_peaks These values were inconsistently set by different parts of the code, e.g. different peak search methods. num_saturated_peaks was even set during final integration. Now, the peak count is taken from the ImageFeatureList, so it's authoritative. --- libcrystfel/src/peakfinder8.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'libcrystfel/src/peakfinder8.c') diff --git a/libcrystfel/src/peakfinder8.c b/libcrystfel/src/peakfinder8.c index 2c67a484..30082580 100644 --- a/libcrystfel/src/peakfinder8.c +++ b/libcrystfel/src/peakfinder8.c @@ -1196,9 +1196,7 @@ int peakfinder8(struct image *img, int max_n_peaks, p = &img->det->panels[pi]; - img->num_peaks += 1; if ( pkdata->max_i[pki] > p->max_adu ) { - img->num_saturated_peaks++; if ( !use_saturated ) { continue; } -- cgit v1.2.3