diff options
Diffstat (limited to 'libcrystfel/src/index.c')
-rw-r--r-- | libcrystfel/src/index.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libcrystfel/src/index.c b/libcrystfel/src/index.c index dc689df2..7e0dd9a9 100644 --- a/libcrystfel/src/index.c +++ b/libcrystfel/src/index.c @@ -565,7 +565,8 @@ void map_all_peaks(struct image *image) f = image_get_feature(image->features, i); if ( f == NULL ) continue; - r = get_q_for_panel(f->p, f->fs, f->ss, + r = get_q_for_panel(&image->det->panels[f->pn], + f->fs, f->ss, NULL, 1.0/image->lambda); f->rx = r.u; f->ry = r.v; f->rz = r.w; @@ -819,7 +820,8 @@ static int delete_explained_peaks(struct image *image, Crystal *cr) nspots++; /* Reciprocal space position of found peak */ - q = get_q_for_panel(f->p, f->fs, f->ss, + q = get_q_for_panel(&image->det->panels[f->pn], + f->fs, f->ss, NULL, 1.0/image->lambda); /* Decimal and fractional Miller indices of nearest |