aboutsummaryrefslogtreecommitdiff
path: root/src/partialator.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2018-03-02 15:13:50 +0100
committerThomas White <taw@physics.org>2018-03-02 15:15:07 +0100
commit67988bb782f5e3d54444c7338b203ae3b901595d (patch)
treeb9167ce77ba357fac0c720eb599458df33f1ca66 /src/partialator.c
parent06bf0f4ec243686a14c51b48a6ebd19888a49a6f (diff)
Don't calculate pobs if reference reflection is weak
Diffstat (limited to 'src/partialator.c')
-rw-r--r--src/partialator.c3
1 files changed, 3 insertions, 0 deletions
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);