aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-05-27 11:44:11 +0200
committerThomas White <taw@physics.org>2020-07-29 18:42:57 +0200
commit0f5bec373a232dfd935fa3a7cc61759f67f1b2ce (patch)
tree786e6964fd97619632d6022b42815a917fcf48fb /libcrystfel/src
parent4b29778969d33cece1a943680b532ba37281a2bc (diff)
Convert map_all_peaks to detgeom
Diffstat (limited to 'libcrystfel/src')
-rw-r--r--libcrystfel/src/index.c12
1 files 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; i<n; i++ ) {
struct imagefeature *f;
- struct rvec r;
+ double r[3];
f = image_get_feature(image->features, 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];
}
}