diff options
Diffstat (limited to 'libcrystfel/src')
-rw-r--r-- | libcrystfel/src/geometry.c | 4 | ||||
-rw-r--r-- | libcrystfel/src/geometry.h | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/libcrystfel/src/geometry.c b/libcrystfel/src/geometry.c index e9712b0a..4e43d3c7 100644 --- a/libcrystfel/src/geometry.c +++ b/libcrystfel/src/geometry.c @@ -175,9 +175,9 @@ static Reflection *check_reflection(struct image *image, Crystal *cryst, } /* Lorentz factor is determined direction from the r values, before - * clamping. The multiplication by the profile radius is to make the + * clamping. The multiplication by 0.01e9 to make the * correction factor vaguely near 1. */ - L = pr / (rlow - rhigh); + L = LORENTZ_SCALE / (rlow - rhigh); /* If the "lower" Ewald sphere is a long way away, use the * position at which the Ewald sphere would just touch the diff --git a/libcrystfel/src/geometry.h b/libcrystfel/src/geometry.h index de0259a7..6a873d15 100644 --- a/libcrystfel/src/geometry.h +++ b/libcrystfel/src/geometry.h @@ -69,6 +69,8 @@ extern void update_partialities_2(Crystal *cryst, PartialityModel pmodel, extern void polarisation_correction(RefList *list, UnitCell *cell, struct image *image); +#define LORENTZ_SCALE (0.01e9) + #ifdef __cplusplus } #endif |