aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2019-07-18 16:44:13 +0200
committerThomas White <taw@physics.org>2019-09-06 10:24:03 +0200
commit6d931c8495cba9589a03c64c91a9fb58d5cfea44 (patch)
tree188b33cd8be7ecbf263eea046482bad16521c917 /libcrystfel/src
parentbf05f19bc1f5ebf9da3fc4252557a1584ed20a28 (diff)
New check for indexing solutions (copied across from pinkIndexer)
Diffstat (limited to 'libcrystfel/src')
-rw-r--r--libcrystfel/src/peaks.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libcrystfel/src/peaks.c b/libcrystfel/src/peaks.c
index f7433383..989f2e72 100644
--- a/libcrystfel/src/peaks.c
+++ b/libcrystfel/src/peaks.c
@@ -733,7 +733,9 @@ int peak_sanity_check(struct image *image, Crystal **crystals, int n_cryst)
}
/* 0 means failed test, 1 means passed test */
- return ((double)n_sane / n_feat) >= 0.5;
+ return (n_sane > 70)
+ || ((n_sane > 25) && (n_sane > 0.3*n_feat))
+ || (n_sane > 0.4*n_feat);
}