aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2014-08-14 11:10:18 +0200
committerThomas White <taw@physics.org>2014-08-14 11:10:18 +0200
commite2335528269bf688d724248d3771cd3cee6558de (patch)
tree54ee924083be60722441069caacfed6c7bb62d17 /tests
parent38a1ea2575da5499b0cd47d416df639bdcada418 (diff)
Factorise reflection prediction and do it before creating the mask
Diffstat (limited to 'tests')
-rw-r--r--tests/prof2d_check.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/prof2d_check.c b/tests/prof2d_check.c
index 3352db49..38abe6f3 100644
--- a/tests/prof2d_check.c
+++ b/tests/prof2d_check.c
@@ -140,6 +140,7 @@ int main(int argc, char *argv[])
image.crystals = &cr;
list = find_intersections(&image, cr, PMODEL_SPHERE);
+ crystal_set_reflections(cr, list);
for ( fs=0; fs<w; fs++ ) {
for ( ss=0; ss<h; ss++ ) {
@@ -175,11 +176,9 @@ int main(int argc, char *argv[])
STATUS("%i strong, %i weak\n", n_strong, n_weak);
- reflist_free(list); /* integrate_prof2d() will predict again */
- integrate_prof2d(INTEGRATION_PROF2D, PMODEL_SPHERE, cr, &image,
+ integrate_prof2d(INTEGRATION_PROF2D, cr, &image,
INTDIAG_NONE, 0, 0, 0, ir_inn, ir_mid, ir_out, 0,
NULL);
- list = crystal_get_reflections(cr);
printf("Weak reflections:\n");
hi = histogram_init();