diff options
author | Thomas White <taw@physics.org> | 2020-12-07 16:11:45 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-12-07 16:11:45 +0100 |
commit | e7cf3911104fb525159b937660a3c3b9f6d31ba7 (patch) | |
tree | 95a7c1387d4f62750c54f98765169e73bbc788c8 /libcrystfel/src/index.c | |
parent | 72f857fbd0c29ba4954f5602ecc43574e581776a (diff) |
Get rid of ImageFeature->rx,ry,rz
These needed to be kept up to date with a call to map_all_peaks every
time anything changed - wavelength, detector position etc. Not doing so
has already led to bugs in another branch, and probably already causes
problems on this branch.
This patch eliminates the rx,ry,rz completely. Anyone who needs
reciprocal space coordinates for a peak is now responsible for calling
detgeom_transform_coords themselves.
Diffstat (limited to 'libcrystfel/src/index.c')
-rw-r--r-- | libcrystfel/src/index.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/libcrystfel/src/index.c b/libcrystfel/src/index.c index 457fd7fe..130b4262 100644 --- a/libcrystfel/src/index.c +++ b/libcrystfel/src/index.c @@ -563,32 +563,6 @@ void cleanup_indexing(IndexingPrivate *ipriv) } -void map_all_peaks(struct image *image) -{ - int i, n; - - n = image_feature_count(image->features); - - /* Map positions to 3D */ - for ( i=0; i<n; i++ ) { - - struct imagefeature *f; - double r[3]; - - f = image_get_feature(image->features, i); - if ( f == NULL ) continue; - - detgeom_transform_coords(&image->detgeom->panels[f->pn], - f->fs, f->ss, - image->lambda, r); - f->rx = r[0]; - f->ry = r[1]; - f->rz = r[2]; - - } -} - - /* Return 0 for cell OK, 1 for cell incorrect */ static int check_cell(IndexingFlags flags, Crystal *cr, UnitCell *target, double *tolerance) @@ -953,7 +927,6 @@ void index_pattern_3(struct image *image, IndexingPrivate *ipriv, int *ping, if ( ipriv == NULL ) return; - map_all_peaks(image); image->crystals = NULL; image->n_crystals = 0; |