aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2013-12-06 11:19:39 +0100
committerThomas White <taw@physics.org>2013-12-06 11:20:00 +0100
commit65fc280b52ebe01a7965e593f3e6565a51c572a7 (patch)
tree379898204b057827e43391968ded2603afd9ef07
parentd602edeacb6a81302dbc8fbab7b0ee87b5531fb2 (diff)
Count implausible reflections when integrating with prof2d
-rw-r--r--libcrystfel/src/integration.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libcrystfel/src/integration.c b/libcrystfel/src/integration.c
index 98239607..1b2193fa 100644
--- a/libcrystfel/src/integration.c
+++ b/libcrystfel/src/integration.c
@@ -1353,6 +1353,11 @@ static void integrate_prof2d_once(struct intcontext *ic, struct peak_box *bx)
pss += bx->offs_ss;
set_detector_pos(bx->refl, 0.0, pfs, pss);
+ if ( bx->intensity < -5.0*bx->sigma ) {
+ ic->n_implausible++;
+ set_redundancy(bx->refl, 0);
+ }
+
if ( get_int_diag(ic, bx->refl) ) show_peak_box(ic, bx);
} else {