diff options
author | Thomas White <taw@physics.org> | 2020-05-27 16:38:19 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-07-29 18:42:57 +0200 |
commit | b2f451cf78d83d6de8a455b191636dc85f7de1cb (patch) | |
tree | c473c9895ad9841934082e54f4032d61f29a38d7 /libcrystfel/src/predict-refine.c | |
parent | c03c4aa196d68e408abef9f66ad3f3e30b8a16ac (diff) |
Convert prediction gradients to detgeom
Diffstat (limited to 'libcrystfel/src/predict-refine.c')
-rw-r--r-- | libcrystfel/src/predict-refine.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libcrystfel/src/predict-refine.c b/libcrystfel/src/predict-refine.c index 0b33c211..bb8c5c35 100644 --- a/libcrystfel/src/predict-refine.c +++ b/libcrystfel/src/predict-refine.c @@ -79,15 +79,15 @@ struct reflpeak { static void twod_mapping(double fs, double ss, double *px, double *py, - struct panel *p) + struct detgeom_panel *p) { double xs, ys; xs = fs*p->fsx + ss*p->ssx; ys = fs*p->fsy + ss*p->ssy; - *px = (xs + p->cnx) / p->res; - *py = (ys + p->cny) / p->res; + *px = (xs + p->cnx) * p->pixel_pitch; + *py = (ys + p->cny) * p->pixel_pitch; } |