diff options
author | Thomas White <taw@physics.org> | 2011-03-23 15:36:57 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:21 +0100 |
commit | 7410b92018097e975535ea228e1f302a3d463f42 (patch) | |
tree | 4d189ba59b7d188a7561c42550b94770094c5e18 /src/indexamajig.c | |
parent | f56ce1b9c6d6b5c9b365354585d32c5ead4869d6 (diff) |
Don't try to write reflections to file if not indexed
Diffstat (limited to 'src/indexamajig.c')
-rw-r--r-- | src/indexamajig.c | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/src/indexamajig.c b/src/indexamajig.c index 42a91e53..c8473fd6 100644 --- a/src/indexamajig.c +++ b/src/indexamajig.c @@ -311,17 +311,24 @@ static void process_image(void *pp, int cookie) //image.reflections = find_intersections(&image, // image.indexed_cell, 0); - image.reflections = find_projected_peaks(&image, - image.indexed_cell, - 0, 0.1); + if ( image.indexed_cell != NULL ) { + image.reflections = find_projected_peaks(&image, + image.indexed_cell, + 0, 0.1); - integrate_reflections(&image, config_polar, - pargs->static_args.config_closer); + integrate_reflections(&image, config_polar, + pargs->static_args.config_closer); - /* OR */ + /* OR */ - //image.reflections = integrate_pixels(&image, 0, 0.1, - // config_polar); + //image.reflections = integrate_pixels(&image, 0, 0.1, + // config_polar); + + } else { + + image.reflections = NULL; + + } pthread_mutex_lock(pargs->static_args.output_mutex); write_chunk(pargs->static_args.ofh, &image, |