aboutsummaryrefslogtreecommitdiff
path: root/src/indexamajig.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2011-02-11 12:37:03 -0800
committerThomas White <taw@physics.org>2012-02-22 15:27:14 +0100
commitaab9901f18326214746402650179a13f22770118 (patch)
tree445663c658cd5a1cb58304145c3878ce31126a0a /src/indexamajig.c
parent91ffa38ff55e08ed7faf60b2e6b1c8ba27e89f5c (diff)
Make find_projected_peaks() behave like find_intersections()
Also make sure output_intensities() deals only with integration
Diffstat (limited to 'src/indexamajig.c')
-rw-r--r--src/indexamajig.c21
1 files changed, 14 insertions, 7 deletions
diff --git a/src/indexamajig.c b/src/indexamajig.c
index 40d7cbd8..b3008232 100644
--- a/src/indexamajig.c
+++ b/src/indexamajig.c
@@ -38,6 +38,7 @@
#include "thread-pool.h"
#include "beam-parameters.h"
#include "symmetry.h"
+#include "geometry.h"
enum {
@@ -262,9 +263,6 @@ static struct image *get_simage(struct image *template, int alternate)
image->indexed_cell = template->indexed_cell;
image->f0 = template->f0;
- /* Prevent muppetry */
- image->reflections = NULL;
-
return image;
}
@@ -325,7 +323,6 @@ static void process_image(void *pp, int cookie)
image.indexed_cell = NULL;
image.id = cookie;
image.filename = filename;
- image.reflections = NULL;
image.det = pargs->static_args.det;
STATUS("Processing '%s'\n", image.filename);
@@ -397,11 +394,22 @@ static void process_image(void *pp, int cookie)
/* Measure intensities if requested */
if ( config_nearbragg ) {
- output_intensities(&image, image.indexed_cell,
+
+ RefList *reflections;
+
+ //reflections = find_intersections(&image, image.indexed_cell,
+ // 0);
+ reflections = find_projected_peaks(&image, image.indexed_cell,
+ 0, 0.1);
+
+ output_intensities(&image, image.indexed_cell, reflections,
pargs->static_args.output_mutex,
config_polar,
pargs->static_args.config_closer,
- pargs->static_args.ofh, 0, 0.1);
+ pargs->static_args.ofh);
+
+ reflist_free(reflections);
+
}
simage = get_simage(&image, config_alternate);
@@ -432,7 +440,6 @@ done:
free(image.data);
free(image.flags);
image_feature_list_free(image.features);
- reflist_free(image.reflections);
hdfile_close(hdfile);
}