aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/integration.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcrystfel/src/integration.c')
-rw-r--r--libcrystfel/src/integration.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libcrystfel/src/integration.c b/libcrystfel/src/integration.c
index 4edc0c56..edc6e7eb 100644
--- a/libcrystfel/src/integration.c
+++ b/libcrystfel/src/integration.c
@@ -1633,9 +1633,10 @@ static void integrate_rings_once(Reflection *refl, struct image *image,
sig2_poisson = aduph * intensity;
/* If intensity is within one photon of nothing, set the Poisson
- * error to be one photon */
+ * error to be one photon. Pretend I = 1 photon = 1*aduph,
+ * then sig2_posson = aduph*intensity = aduph^2. */
if ( fabs(intensity / aduph) < 1.0 ) {
- sig2_poisson = aduph;
+ sig2_poisson = aduph * aduph;
}
/* If intensity is negative by more than one photon, assume that