aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2011-02-12 14:53:48 -0800
committerThomas White <taw@physics.org>2012-02-22 15:27:14 +0100
commit10c6b8737dfebcf24063935387fc21ad7a59cd4b (patch)
tree86ea7e402b137c160470d36f77b9d0f39fb5c3c0
parent7a9c77e2fb0437d24eea64b92e638cf7f8bc65e6 (diff)
Only add unique reflections
-rw-r--r--src/partialator.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/partialator.c b/src/partialator.c
index 286550f7..88dc0063 100644
--- a/src/partialator.c
+++ b/src/partialator.c
@@ -353,7 +353,9 @@ int main(int argc, char *argv[])
n_found++;
get_asymm(h, k, l, &ha, &ka, &la, sym);
- add_item(obs, ha, ka, la);
+ if ( find_item(obs, ha, ka, la) == 0 ) {
+ add_item(obs, ha, ka, la);
+ }
new = add_refl(images[i].reflections, ha, ka, la);
get_partial(refl, &r1, &r2, &p, &clamp1, &clamp2);
get_detector_pos(refl, &x, &y);