diff options
author | Thomas White <taw@physics.org> | 2015-04-28 14:26:13 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2015-04-28 16:04:47 +0200 |
commit | 4b9e0dc9102b2c68107716d2e0d9d76863182679 (patch) | |
tree | 6cfb136f37e32e82b2a52038ae7ef95ef82c5c92 | |
parent | 401309b1f01d374f784cc0e8879e6b47f03fb769 (diff) |
Reject boxes with very large gradients during rings integration
-rw-r--r-- | libcrystfel/src/integration.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libcrystfel/src/integration.c b/libcrystfel/src/integration.c index 0e35037d..825531a5 100644 --- a/libcrystfel/src/integration.c +++ b/libcrystfel/src/integration.c @@ -1397,6 +1397,7 @@ static void integrate_rings_once(Reflection *refl, struct image *image, r = check_box(ic, bx, &saturated); if ( !r ) { fit_bg(ic, bx); + if ( !bg_ok(bx) ) r = 1; } bx->offs_fs = 0.0; bx->offs_ss = 0.0; |