aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/stream.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2014-10-23 13:26:22 +0200
committerThomas White <taw@physics.org>2014-10-23 17:02:33 +0200
commitdf7f5d098196ae4d67aaf89d626682a26062caa0 (patch)
tree70859204f6e64e71406b84c81c986e19f0017944 /libcrystfel/src/stream.c
parentab4db8ab3ce97ccad7bbad2a8cc6698cdd2d4c2d (diff)
read_stream_reflections_2_3(): Fix detector positions
Diffstat (limited to 'libcrystfel/src/stream.c')
-rw-r--r--libcrystfel/src/stream.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcrystfel/src/stream.c b/libcrystfel/src/stream.c
index c1b32a4f..cb152088 100644
--- a/libcrystfel/src/stream.c
+++ b/libcrystfel/src/stream.c
@@ -269,9 +269,9 @@ static RefList *read_stream_reflections_2_3(FILE *fh, struct detector *det)
set_intensity(refl, intensity);
if ( det != NULL ) {
p = find_panel_by_name(det,pn);
+ write_fs = fs - p->orig_min_fs + p->min_fs;
+ write_ss = ss - p->orig_min_ss + p->min_ss;
set_detector_pos(refl, 0.0, write_fs, write_ss);
- write_ss = ss-p->orig_min_ss+p->min_ss;
- write_fs = fs-p->orig_min_fs+p->min_fs;
}
set_esd_intensity(refl, sigma);
set_redundancy(refl, cts);