aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/geometry.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-06-08 15:33:28 +0200
committerThomas White <taw@physics.org>2020-07-29 18:53:44 +0200
commitc863d99144e6506320a557840f6ae37236a6a3c4 (patch)
tree4daae9a65be0e69d86352eeb9d73930fb8b748e5 /libcrystfel/src/geometry.c
parent7225ef12ff703a332a1eabf846151798357e219a (diff)
Replace largest_q for detgeom
Diffstat (limited to 'libcrystfel/src/geometry.c')
-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 8518d026..0dbabcf2 100644
--- a/libcrystfel/src/geometry.c
+++ b/libcrystfel/src/geometry.c
@@ -506,6 +506,7 @@ RefList *predict_to_res(Crystal *cryst, double max_res)
double mres;
signed int h, k, l;
UnitCell *cell;
+ struct image *image;
cell = crystal_get_cell(cryst);
if ( cell == NULL ) return NULL;
@@ -522,7 +523,8 @@ RefList *predict_to_res(Crystal *cryst, double max_res)
cell_get_cartesian(cell, &ax, &ay, &az, &bx, &by, &bz, &cx, &cy, &cz);
- mres = largest_q(crystal_get_image(cryst));
+ image = crystal_get_image(cryst);
+ mres = detgeom_max_resolution(image->detgeom, image->lambda);
if ( mres > max_res ) mres = max_res;
hmax = mres * modulus(ax, ay, az);