aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2023-11-08 17:08:51 +0100
committerThomas White <taw@physics.org>2024-02-06 16:59:34 +0100
commite209e26fb6fd76554e41cbe0f7c050cfcac83832 (patch)
tree68f31ce3899528268644d78a1a2e223c305eb430 /tests
parente377768607f11d48106bd1381f1312379c342d7e (diff)
Crystal: Remove reference to image structure (part 2)
Diffstat (limited to 'tests')
-rw-r--r--tests/gradient_check.c2
-rw-r--r--tests/gradient_check_utils.c3
-rw-r--r--tests/prof2d_check.c1
3 files changed, 2 insertions, 4 deletions
diff --git a/tests/gradient_check.c b/tests/gradient_check.c
index 001bff7a..48b8311b 100644
--- a/tests/gradient_check.c
+++ b/tests/gradient_check.c
@@ -115,7 +115,7 @@ int main(int argc, char *argv[])
return 1;
}
- update_predictions(image.crystals[0]);
+ update_predictions(image.crystals[0], &image);
after = make_dev_list(rps, n_refls, image.detgeom);
for ( i=0; i<n_refls; i++ ) {
diff --git a/tests/gradient_check_utils.c b/tests/gradient_check_utils.c
index 67ba255e..e217609f 100644
--- a/tests/gradient_check_utils.c
+++ b/tests/gradient_check_utils.c
@@ -141,10 +141,9 @@ struct reflpeak *make_test_image(int *pn_refls, struct image *image)
}
crystal_set_mosaicity(cr, 0.0);
crystal_set_profile_radius(cr, 0.005e9);
- crystal_set_image(cr, image);
crystal_set_cell(cr, random_rotated_cell(rng));
- refls = predict_to_res(cr, detgeom_max_resolution(image->detgeom, image->lambda));
+ refls = predict_to_res(cr, image, detgeom_max_resolution(image->detgeom, image->lambda));
crystal_set_reflections(cr, refls);
n_refls = num_reflections(refls);
diff --git a/tests/prof2d_check.c b/tests/prof2d_check.c
index 28ecd67c..71e56d49 100644
--- a/tests/prof2d_check.c
+++ b/tests/prof2d_check.c
@@ -125,7 +125,6 @@ int main(int argc, char *argv[])
cr = crystal_new();
crystal_set_profile_radius(cr, 0.001e9);
crystal_set_mosaicity(cr, 0.0); /* radians */
- crystal_set_image(cr, &image);
crystal_set_cell(cr, cell);
image.n_crystals = 1;