From c56f32e1fad9c8407f37d389648885d73cee444a Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 17 Mar 2021 11:53:31 +0100 Subject: Add missing conversion to pixels for detector_shift_{x,y} --- libcrystfel/src/image.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libcrystfel') diff --git a/libcrystfel/src/image.c b/libcrystfel/src/image.c index aaf38d92..99b0891e 100644 --- a/libcrystfel/src/image.c +++ b/libcrystfel/src/image.c @@ -444,10 +444,10 @@ int create_detgeom(struct image *image, const DataTemplate *dtempl) shift_y = im_get_length(image, dtempl->shift_y_from, 1.0); if ( !isnan(shift_x) ) { - p->cnx += shift_x; + p->cnx += shift_x / p->pixel_pitch; } if ( !isnan(shift_y) ) { - p->cny += shift_y; + p->cny += shift_y / p->pixel_pitch; } p->max_adu = dtempl->panels[i].max_adu; -- cgit v1.2.3