aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/peaks.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2012-04-26 14:51:58 +0200
committerThomas White <taw@physics.org>2012-04-26 14:57:43 +0200
commit23295e405b524d86475e22eb21a56fd1ada3e530 (patch)
tree1eb132d21d25e420c50835a054bc637a64078926 /libcrystfel/src/peaks.c
parent817ce63505c93f00117439eee6b11934f6cd4b1d (diff)
Update the peak coordinates when doing --closer-peak
This should make it much more obvious (via check-near-bragg) when the peak positions are wrong.
Diffstat (limited to 'libcrystfel/src/peaks.c')
-rw-r--r--libcrystfel/src/peaks.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libcrystfel/src/peaks.c b/libcrystfel/src/peaks.c
index 4b146eb6..78a68185 100644
--- a/libcrystfel/src/peaks.c
+++ b/libcrystfel/src/peaks.c
@@ -636,9 +636,15 @@ void integrate_reflections(struct image *image, int use_closer, int bgsub,
/* FIXME: Horrible hardcoded value */
if ( (f != NULL) && (d < 10.0) ) {
+ double exe;
+
+ exe = get_excitation_error(refl);
+
pfs = f->fs;
pss = f->ss;
+ set_detector_pos(refl, exe, pfs, pss);
+
}
}