From 88dd3c5f067675ba2409adbb9961812f1600dbee Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 20 Sep 2023 10:20:49 +0200 Subject: Fix inappropriate use of r_dev These should be get_exerr. Following 1ae9a4582, the r_dev values are no longer useful physical quantities, only a refinement target function. This was causing the last few Git versions to not predict any reflections at all! --- libcrystfel/src/predict-refine.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libcrystfel/src') diff --git a/libcrystfel/src/predict-refine.c b/libcrystfel/src/predict-refine.c index ba1bb3ae..32d0f77b 100644 --- a/libcrystfel/src/predict-refine.c +++ b/libcrystfel/src/predict-refine.c @@ -366,7 +366,7 @@ static int cmpd2(const void *av, const void *bv) a = (struct reflpeak *)av; b = (struct reflpeak *)bv; - if ( fabs(r_dev(a)) < fabs(r_dev(b)) ) return -1; + if ( fabs(get_exerr(a->refl)) < fabs(get_exerr(b->refl)) ) return -1; return 1; } @@ -383,10 +383,10 @@ static int check_outlier_transition(struct reflpeak *rps, int n, for ( i=1; i= 2 */ - crystal_set_profile_radius(cr, fabs(r_dev(&rps[n]))); + crystal_set_profile_radius(cr, fabs(get_exerr(rps[n].refl))); reflist_free(reflist); free(rps); -- cgit v1.2.3