aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/predict-refine.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-03-05 11:47:41 +0100
committerThomas White <taw@physics.org>2020-07-29 18:42:24 +0200
commit94df5f31d5a91b22991e26cd02bc37763005f2d1 (patch)
tree569de419937b1b17747e396837ee222e736ea568 /libcrystfel/src/predict-refine.c
parent026af04547c22c67886c66d3b1808c4dd3ade997 (diff)
ImageFeatureList: Store panel number, not pointer
This makes the conversion to DataTemplate/detgeom MUCH easier.
Diffstat (limited to 'libcrystfel/src/predict-refine.c')
-rw-r--r--libcrystfel/src/predict-refine.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcrystfel/src/predict-refine.c b/libcrystfel/src/predict-refine.c
index aff5fc22..0b33c211 100644
--- a/libcrystfel/src/predict-refine.c
+++ b/libcrystfel/src/predict-refine.c
@@ -267,11 +267,11 @@ static int pair_peaks(struct image *image, Crystal *cr,
* in how far away it is from the peak location.
* The predicted position and excitation errors will be
* filled in by update_predictions(). */
- set_panel(refl, f->p);
+ set_panel(refl, &image->det->panels[f->pn]);
rps[n].refl = refl;
rps[n].peak = f;
- rps[n].panel = f->p;
+ rps[n].panel = &image->det->panels[f->pn];
n++;
}