diff options
author | Thomas White <taw@physics.org> | 2011-11-14 14:21:08 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:39 +0100 |
commit | 42e6b6387fc6e166bd493360ec89dda83ed9c2c6 (patch) | |
tree | b1fcf1384ac4258b56c8ee2692dddc59e5239a32 /src/indexamajig.c | |
parent | 69632c5f4c08a255507a76f081c2fbb05c6a2184 (diff) |
indexamajig: Pass the beam parameters properly
Diffstat (limited to 'src/indexamajig.c')
-rw-r--r-- | src/indexamajig.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/indexamajig.c b/src/indexamajig.c index 26ea158d..e78eff02 100644 --- a/src/indexamajig.c +++ b/src/indexamajig.c @@ -231,7 +231,7 @@ static void process_image(void *pp, int cookie) int config_verbose = pargs->static_args.config_verbose; int config_polar = pargs->static_args.config_polar; IndexingMethod *indm = pargs->static_args.indm; - const struct beam_params *beam = pargs->static_args.beam; + struct beam_params *beam = pargs->static_args.beam; image.features = NULL; image.data = NULL; @@ -241,6 +241,13 @@ static void process_image(void *pp, int cookie) image.filename = filename; image.det = copy_geom(pargs->static_args.det); image.copyme = pargs->static_args.copyme; + image.beam = beam; + + if ( beam == NULL ) { + ERROR("Warning: no beam parameters file.\n"); + ERROR("I'm going to assume 1 ADU per photon, which is almost"); + ERROR(" certainly wrong. Peak sigmas will be incorrect.\n"); + } pargs->indexable = 0; |