From 1862584055980608d10d4a3708351b0c8ff034b7 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 12 Mar 2021 12:35:25 +0100 Subject: FromFile indexer: Remove update_detector Everything should use the per-crystal detector shift now. --- libcrystfel/src/indexers/fromfile.c | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'libcrystfel/src/indexers') diff --git a/libcrystfel/src/indexers/fromfile.c b/libcrystfel/src/indexers/fromfile.c index 969477b8..4da01d78 100644 --- a/libcrystfel/src/indexers/fromfile.c +++ b/libcrystfel/src/indexers/fromfile.c @@ -32,7 +32,6 @@ #include #include "image.h" -#include "detector.h" #include "uthash.h" /** \file fromfile.h */ @@ -311,18 +310,6 @@ void *fromfile_prepare(char *solution_filename, UnitCell *cell) } -static void update_detector(struct detector *det, double xoffs, double yoffs) -{ - int i; - - for ( i = 0; i < det->n_panels; i++ ) { - struct panel *p = &det->panels[i]; - p->cnx += xoffs * p->res; - p->cny += yoffs * p->res; - } -} - - int fromfile_index(struct image *image, void *mpriv, int crystal_number) { Crystal *cr; @@ -369,7 +356,6 @@ int fromfile_index(struct image *image, void *mpriv, int crystal_number) ncryst += 1; crystal_set_cell(cr, cell); crystal_set_det_shift(cr, xshift , yshift); - update_detector(image->det, xshift , yshift); image_add_crystal(image, cr); /* Look for additional crystals */ -- cgit v1.2.3