diff options
author | Thomas White <taw@physics.org> | 2021-08-13 10:48:12 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2021-08-13 18:12:47 +0200 |
commit | 545dc94f7c681dcebb58d5de8521578342e2002a (patch) | |
tree | 6f72844b5bb2bc5703aec1994b84e98ca7da8d3b /libcrystfel | |
parent | 419eed7e32beaeb55a568f08a27fe35386aaf370 (diff) |
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.
Diffstat (limited to 'libcrystfel')
-rw-r--r-- | libcrystfel/src/integration.c | 4 |
1 files changed, 3 insertions, 1 deletions
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); } |