diff options
author | Thomas White <taw@physics.org> | 2010-07-06 18:31:51 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:26:52 +0100 |
commit | 0c658d713a96463f6e1c7c43dfd9dc8bd40a158d (patch) | |
tree | 41e6191b3c2e874e8607aa64f04c1011a4d27b18 /src | |
parent | 901edc57b68bc08f42a165b9f015aa48f8b50633 (diff) |
Don't use cull_peaks() unless geometry is present
Diffstat (limited to 'src')
-rw-r--r-- | src/peaks.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/peaks.c b/src/peaks.c index 0f70642d..27378eef 100644 --- a/src/peaks.c +++ b/src/peaks.c @@ -413,8 +413,14 @@ void search_peaks(struct image *image) } } - ncull = cull_peaks(image); - nacc -= ncull; + if ( image->det != NULL ) { + ncull = cull_peaks(image); + nacc -= ncull; + } else { + STATUS("Not culling peaks because I don't have a " + "detector geometry file.\n"); + ncull = 0; + } STATUS("%i accepted, %i box, %i hot, %i proximity, %i outside frame, " "%i in bad regions, %i badrow culled.\n", |