diff options
author | Thomas White <taw@physics.org> | 2015-12-10 09:25:17 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2015-12-10 09:25:17 +0100 |
commit | 3405b5cf407927f648cee59d5e746211888b104b (patch) | |
tree | 6ef50055056c75c8da65b7e89057f46877de7927 /libcrystfel | |
parent | f094e70fd60899579a8452c1c08121f25e0be885 (diff) |
Fix integration tests for new saturation map
Diffstat (limited to 'libcrystfel')
-rw-r--r-- | libcrystfel/src/integration.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libcrystfel/src/integration.c b/libcrystfel/src/integration.c index b3bee120..ce996db7 100644 --- a/libcrystfel/src/integration.c +++ b/libcrystfel/src/integration.c @@ -846,7 +846,11 @@ static int check_box(struct intcontext *ic, struct peak_box *bx, int *sat) } /* Per-pixel saturation value */ - lsat = ic->image->sat[bx->pn][fs + bx->p->w*ss]; + if ( ic->image->sat != NULL ) { + lsat = ic->image->sat[bx->pn][fs + bx->p->w*ss]; + } else { + lsat = INFINITY; + } if ( (bx->bm[p+ic->w*q] != BM_IG) && (bx->bm[p+ic->w*q] != BM_BH) && ((boxi(ic, bx, p, q) > bx->p->max_adu) |