aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/peakfinder8.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcrystfel/src/peakfinder8.c')
-rw-r--r--libcrystfel/src/peakfinder8.c8
1 files 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; iss<h ; iss++ ) {
- for ( ifs = 0; ifs<w ; ifs++ ) {
+ for ( iss=0; iss<h; iss++ ) {
+ for ( ifs=0; ifs<w; ifs++ ) {
pidx = iss * w + ifs;
if ( mask[pidx] != 0 ) {
curr_r = (int)rint(r_map[pidx]);
value = data[pidx];
- if ( value < rthreshold[curr_r ] && value>lthreshold[curr_r]) {
+ if ( value < rthreshold[curr_r]
+ && value > lthreshold[curr_r] )
+ {
roffset[curr_r] += value;
rsigma[curr_r] += (value * value);
rcount[curr_r] += 1;