From 545dc94f7c681dcebb58d5de8521578342e2002a Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 13 Aug 2021 10:48:12 +0200 Subject: Increase threshold for integration warning The warning about "XXX reflections couldn't be integrated" is tiresome - it appears for practically every indexed pattern because there are always some reflections that fall in bad regions or at panel edges. This suppresses the warning unless the number of integration failures is more than a quarter of the total number of reflections. --- libcrystfel/src/integration.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libcrystfel') diff --git a/libcrystfel/src/integration.c b/libcrystfel/src/integration.c index e797d26b..24b827ef 100644 --- a/libcrystfel/src/integration.c +++ b/libcrystfel/src/integration.c @@ -1627,6 +1627,7 @@ static void integrate_rings(IntegrationMethod meth, UnitCell *cell; struct intcontext *ic; int n_rej = 0; + int n_refl = 0; list = crystal_get_reflections(cr); cell = crystal_get_cell(cr); @@ -1645,13 +1646,14 @@ static void integrate_rings(IntegrationMethod meth, refl != NULL; refl = next_refl(refl, iter) ) { + n_refl++; n_rej += integrate_rings_once(refl, ic, term_lock); } intcontext_free(ic); - if ( n_rej > 0 ) { + if ( n_rej*4 > n_refl ) { ERROR("WARNING: %i reflections could not be integrated\n", n_rej); } -- cgit v1.2.3