aboutsummaryrefslogtreecommitdiff
path: root/src/facetron.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-10-29 17:11:20 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:04 +0100
commit7b65c4e12698c8c7dedd55b0e0038421ed4db094 (patch)
treed0c7f146ce44039bd5d3f83638c73f67f21c25e8 /src/facetron.c
parent9895fe095c82519dbe22b81b449731362df8c26a (diff)
facetron: Use symmetry when merging
Diffstat (limited to 'src/facetron.c')
-rw-r--r--src/facetron.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/facetron.c b/src/facetron.c
index 806ce54f..c4470411 100644
--- a/src/facetron.c
+++ b/src/facetron.c
@@ -121,6 +121,7 @@ static void integrate_image(int mytask, void *tasks)
for ( j=0; j<n; j++ ) {
signed int h, k, l;
+ signed int ha, ka, la;
float i_partial;
float xc, yc;
float i_full_est;
@@ -143,11 +144,13 @@ static void integrate_image(int mytask, void *tasks)
i_full_est = i_partial * spots[j].p;
+ get_asymm(h, k, l, &ha, &ka, &la, pargs->sym);
+
pthread_mutex_lock(pargs->list_lock);
- integrate_intensity(pargs->i_full, h, k, l, i_full_est);
- integrate_count(pargs->cts, h, k, l, 1);
- if ( !find_item(pargs->obs, h, k, l) ) {
- add_item(pargs->obs, h, k, l);
+ integrate_intensity(pargs->i_full, ha, ka, la, i_full_est);
+ integrate_count(pargs->cts, ha, ka, la, 1);
+ if ( !find_item(pargs->obs, ha, ka, la) ) {
+ add_item(pargs->obs, ha, ka, la);
}
pthread_mutex_unlock(pargs->list_lock);