diff options
author | Thomas White <taw@physics.org> | 2018-04-25 10:59:23 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2018-04-25 12:11:21 +0200 |
commit | 6b182000d086237fd7e0e2f8aae9ed007d4ec990 (patch) | |
tree | 259cf1e5e44b477c849cb577c370eb6b1ded942a /libcrystfel/src | |
parent | f391e5a07e7c0552ee0e7938851b101b5163fe4a (diff) |
Formatting fussiness
Diffstat (limited to 'libcrystfel/src')
-rw-r--r-- | libcrystfel/src/peakfinder8.c | 8 |
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; |