From 65fc280b52ebe01a7965e593f3e6565a51c572a7 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 6 Dec 2013 11:19:39 +0100 Subject: Count implausible reflections when integrating with prof2d --- libcrystfel/src/integration.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libcrystfel/src') 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 { -- cgit v1.2.3