From 0f5bec373a232dfd935fa3a7cc61759f67f1b2ce Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 27 May 2020 11:44:11 +0200 Subject: Convert map_all_peaks to detgeom --- libcrystfel/src/index.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/libcrystfel/src/index.c b/libcrystfel/src/index.c index 47d2f414..593da481 100644 --- a/libcrystfel/src/index.c +++ b/libcrystfel/src/index.c @@ -560,15 +560,17 @@ void map_all_peaks(struct image *image) for ( i=0; ifeatures, i); if ( f == NULL ) continue; - 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; + detgeom_transform_coords(&image->detgeom->panels[f->pn], + f->fs, f->ss, + image->lambda, r); + f->rx = r[0]; + f->ry = r[1]; + f->rz = r[2]; } } -- cgit v1.2.3