aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/predict-refine.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2023-11-08 16:24:41 +0100
committerThomas White <taw@physics.org>2024-02-06 16:59:34 +0100
commite377768607f11d48106bd1381f1312379c342d7e (patch)
tree1e662f0557127e1bd92febd27dfda26f2d5a1960 /libcrystfel/src/predict-refine.c
parentf3b25d69e888cb66e6a2add491a4f6d5e18f30af (diff)
Crystal: Remove reference to image structure (part 1)
Diffstat (limited to 'libcrystfel/src/predict-refine.c')
-rw-r--r--libcrystfel/src/predict-refine.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libcrystfel/src/predict-refine.c b/libcrystfel/src/predict-refine.c
index d5a3b403..24045ddb 100644
--- a/libcrystfel/src/predict-refine.c
+++ b/libcrystfel/src/predict-refine.c
@@ -489,7 +489,7 @@ static int pair_peaks(struct image *image, Crystal *cr,
/* Get the excitation errors and detector positions for the candidate
* reflections */
crystal_set_reflections(cr, all_reflist);
- update_predictions(cr);
+ update_predictions(cr, image);
/* Pass over the peaks again, keeping only the ones which look like
* good pairings */
@@ -570,7 +570,7 @@ int refine_radius(Crystal *cr, struct image *image)
return 1;
}
crystal_set_reflections(cr, reflist);
- update_predictions(cr);
+ update_predictions(cr, image);
crystal_set_reflections(cr, NULL);
qsort(rps, n_acc, sizeof(struct reflpeak), cmpd2);
@@ -855,7 +855,7 @@ int refine_prediction(struct image *image, Crystal *cr,
/* Refine (max 5 cycles) */
for ( i=0; i<5; i++ ) {
- update_predictions(cr);
+ update_predictions(cr, image);
if ( iterate(rps, n, crystal_get_cell(cr), image, Minvs, total_shifts) )
{
crystal_set_reflections(cr, NULL);