aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2013-03-15 11:20:31 +0100
committerThomas White <taw@physics.org>2013-04-17 17:33:48 +0200
commit454b01b732b98a0b1cddbd85f91df64560416494 (patch)
treecb1ad89c21af5cbc95a48fba1947545a0e2baf3b /libcrystfel
parentb31a273b8191bd0688d1382168ce9ba3500e6604 (diff)
Use Lorentz factors when merging reflections
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/src/geometry.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libcrystfel/src/geometry.c b/libcrystfel/src/geometry.c
index 7a553f82..f457fc4f 100644
--- a/libcrystfel/src/geometry.c
+++ b/libcrystfel/src/geometry.c
@@ -384,7 +384,7 @@ void update_partialities(Crystal *cryst, PartialityModel pmodel)
refl = next_refl(refl, iter) )
{
Reflection *vals;
- double r1, r2, p, x, y;
+ double r1, r2, L, p, x, y;
double xl, yl, zl;
signed int h, k, l;
int clamp1, clamp2;
@@ -407,6 +407,8 @@ void update_partialities(Crystal *cryst, PartialityModel pmodel)
/* Transfer partiality stuff */
get_partial(vals, &r1, &r2, &p, &clamp1, &clamp2);
set_partial(refl, r1, r2, p, clamp1, clamp2);
+ L = get_lorentz(vals);
+ set_lorentz(refl, L);
/* Transfer detector location */
get_detector_pos(vals, &x, &y);