diff options
Diffstat (limited to 'tests/gradient_check_utils.c')
-rw-r--r-- | tests/gradient_check_utils.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/gradient_check_utils.c b/tests/gradient_check_utils.c index e217609f..8b9191cf 100644 --- a/tests/gradient_check_utils.c +++ b/tests/gradient_check_utils.c @@ -144,7 +144,6 @@ struct reflpeak *make_test_image(int *pn_refls, struct image *image) crystal_set_cell(cr, random_rotated_cell(rng)); refls = predict_to_res(cr, image, detgeom_max_resolution(image->detgeom, image->lambda)); - crystal_set_reflections(cr, refls); n_refls = num_reflections(refls); /* Associate a peak with every reflection */ @@ -174,7 +173,7 @@ struct reflpeak *make_test_image(int *pn_refls, struct image *image) i++; } - image_add_crystal(image, cr); + image_add_crystal_refls(image, cr, refls); gsl_rng_free(rng); |