aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/predict-refine.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-08-18 17:30:44 +0200
committerThomas White <taw@physics.org>2020-08-18 17:30:44 +0200
commitd2015e147044765de4a6ba4ae96c3e2699124a72 (patch)
tree39f8e5359f0e92d5f469ad9061c843354214c838 /libcrystfel/src/predict-refine.c
parent09a1a42dc6e17a330bdd2600d6204f95b4119f76 (diff)
Formatting/comments
Diffstat (limited to 'libcrystfel/src/predict-refine.c')
-rw-r--r--libcrystfel/src/predict-refine.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libcrystfel/src/predict-refine.c b/libcrystfel/src/predict-refine.c
index a9ba6966..43a52cae 100644
--- a/libcrystfel/src/predict-refine.c
+++ b/libcrystfel/src/predict-refine.c
@@ -83,11 +83,11 @@ static void twod_mapping(double fs, double ss, double *px, double *py,
{
double xs, ys;
- xs = fs*p->fsx + ss*p->ssx;
- ys = fs*p->fsy + ss*p->ssy;
+ xs = fs*p->fsx + ss*p->ssx; /* pixels */
+ ys = fs*p->fsy + ss*p->ssy; /* pixels */
- *px = (xs + p->cnx) * p->pixel_pitch;
- *py = (ys + p->cny) * p->pixel_pitch;
+ *px = (xs + p->cnx) * p->pixel_pitch; /* metres */
+ *py = (ys + p->cny) * p->pixel_pitch; /* metres */
}
@@ -314,8 +314,8 @@ int refine_radius(Crystal *cr, struct image *image)
}
-static void update_detector(struct detgeom *det, double xoffs, double yoffs,
- double coffs)
+static void update_detector(struct detgeom *det,
+ double xoffs, double yoffs, double coffs)
{
int i;