aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2019-06-13 11:19:25 +0200
committerThomas White <taw@physics.org>2019-07-17 09:22:23 +0200
commitc411f89749adabe3406d516052394983434c17dd (patch)
treee630a12ad4723274201970eb6a4b66601c41cb0e /src
parent08467883ed89a48cbc664435f5078a80bd6dfdba (diff)
partialator: Only strong reflections in specgraph, and remove resolution limit for pgraph
Rationale for pgraph: the viewer already has a resolution selector.
Diffstat (limited to 'src')
-rw-r--r--src/partialator.c1
-rw-r--r--src/post-refinement.c3
2 files changed, 3 insertions, 1 deletions
diff --git a/src/partialator.c b/src/partialator.c
index 082b9fec..f5d1a210 100644
--- a/src/partialator.c
+++ b/src/partialator.c
@@ -649,7 +649,6 @@ static void write_to_pgraph(FILE *fh, RefList *list, RefList *full, Crystal *cr,
get_indices(refl, &h, &k, &l);
res = resolution(cell, h, k, l);
- if ( 2.0*res > crystal_get_resolution_limit(cr) ) continue;
match = find_refl(full, h, k, l);
if ( match == NULL ) continue;
diff --git a/src/post-refinement.c b/src/post-refinement.c
index bcef016c..01ba8b14 100644
--- a/src/post-refinement.c
+++ b/src/post-refinement.c
@@ -561,6 +561,9 @@ void write_specgraph(Crystal *crystal, const RefList *full,
signed int h, k, l;
Reflection *match;
+ /* Strong reflections only */
+ if ( get_intensity(refl) < 3.0*get_esd_intensity(refl) ) continue;
+
get_indices(refl, &h, &k, &l);
res = resolution(cell, h, k, l);