aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/peaks.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcrystfel/src/peaks.c')
-rw-r--r--libcrystfel/src/peaks.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcrystfel/src/peaks.c b/libcrystfel/src/peaks.c
index fa765b65..55abff27 100644
--- a/libcrystfel/src/peaks.c
+++ b/libcrystfel/src/peaks.c
@@ -247,9 +247,9 @@ int integrate_peak(struct image *image, int cfs, int css,
/* Noise
* noise and noise_meansq are both in photons (^2) */
- noise += val / image->beam->adu_per_photon;
+ noise += val / aduph;
noise_counts++;
- noise_meansq += pow(val, 2.0);
+ noise_meansq += pow(val/aduph, 2.0);
} else if ( fs*fs + ss*ss < lim_sq ) {