aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2021-03-12 12:35:25 +0100
committerThomas White <taw@physics.org>2021-03-12 12:35:25 +0100
commit1862584055980608d10d4a3708351b0c8ff034b7 (patch)
treea8896b76ea43e189b9c48998a49bd4fed1715a49 /libcrystfel
parent1a92ce3723861478e48a9c4875b9fcd0e6589ad3 (diff)
FromFile indexer: Remove update_detector
Everything should use the per-crystal detector shift now.
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/src/indexers/fromfile.c14
1 files changed, 0 insertions, 14 deletions
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 <unistd.h>
#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 */