From 67988bb782f5e3d54444c7338b203ae3b901595d Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 2 Mar 2018 15:13:50 +0100 Subject: Don't calculate pobs if reference reflection is weak --- src/partialator.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/partialator.c') diff --git a/src/partialator.c b/src/partialator.c index f826bf83..0142a628 100644 --- a/src/partialator.c +++ b/src/partialator.c @@ -648,6 +648,9 @@ static void write_to_pgraph(FILE *fh, RefList *list, RefList *full, Crystal *cr, match = find_refl(full, h, k, l); if ( match == NULL ) continue; + /* Don't calculate pobs if reference reflection is weak */ + if ( fabs(get_intensity(match)) / get_esd_intensity(match) < 3.0 ) continue; + /* Calculated partiality */ pcalc = get_partiality(refl); -- cgit v1.2.3