aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/predict-refine.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2021-03-22 16:28:54 +0100
committerThomas White <taw@physics.org>2021-03-23 18:19:36 +0100
commit66eff85bd922212ffc5b6332abdeffff9c75e761 (patch)
tree0503b2f0a87ce7e98cec17799d5ff6a9f3732ac4 /libcrystfel/src/predict-refine.c
parent5d42a5a07530509f156bf56dcbcbbfce85e025c7 (diff)
Use crystal's detector shift during prediction
Previously, this was handled by updating the detector, but this could easily lead to strange double accounting.
Diffstat (limited to 'libcrystfel/src/predict-refine.c')
-rw-r--r--libcrystfel/src/predict-refine.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/libcrystfel/src/predict-refine.c b/libcrystfel/src/predict-refine.c
index 2432055f..5a7c554f 100644
--- a/libcrystfel/src/predict-refine.c
+++ b/libcrystfel/src/predict-refine.c
@@ -322,22 +322,6 @@ int refine_radius(Crystal *cr, struct image *image)
}
-static void update_detector(struct detgeom *det,
- double xoffs, double yoffs, double coffs)
-{
- int i;
-
- for ( i=0; i<det->n_panels; i++ ) {
- struct detgeom_panel *p = &det->panels[i];
-
- /* Convert to pixels */
- p->cnx += xoffs / p->pixel_pitch;
- p->cny += yoffs / p->pixel_pitch;
- p->cnz += coffs / p->pixel_pitch;
- }
-}
-
-
static int iterate(struct reflpeak *rps, int n, UnitCell *cell,
struct image *image,
double *total_x, double *total_y, double *total_z)
@@ -503,10 +487,6 @@ static int iterate(struct reflpeak *rps, int n, UnitCell *cell,
csx += gsl_vector_get(shifts, 6);
csy += gsl_vector_get(shifts, 7);
csz += gsl_vector_get(shifts, 8);
- update_detector(image->detgeom,
- gsl_vector_get(shifts, 9),
- gsl_vector_get(shifts, 10),
- 0.0);
*total_x += gsl_vector_get(shifts, 9);
*total_y += gsl_vector_get(shifts, 10);
*total_z += 0.0;