From 6b182000d086237fd7e0e2f8aae9ed007d4ec990 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 25 Apr 2018 10:59:23 +0200 Subject: Formatting fussiness --- libcrystfel/src/peakfinder8.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libcrystfel/src/peakfinder8.c b/libcrystfel/src/peakfinder8.c index 417465df..ca44d48f 100644 --- a/libcrystfel/src/peakfinder8.c +++ b/libcrystfel/src/peakfinder8.c @@ -363,13 +363,15 @@ static void fill_radial_bins(float *data, int curr_r; float value; - for ( iss = 0; isslthreshold[curr_r]) { + if ( value < rthreshold[curr_r] + && value > lthreshold[curr_r] ) + { roffset[curr_r] += value; rsigma[curr_r] += (value * value); rcount[curr_r] += 1; -- cgit v1.2.3