aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2016-01-30 22:22:13 +0100
committerThomas White <taw@physics.org>2016-01-30 22:24:52 +0100
commit842eac4b578d8d64c594fd87becf5bb552b44884 (patch)
tree6a8c866335602771ca667b765c205cb456ded1c2 /libcrystfel/src
parent4b2cc069a16bf564404d9f1020733dd2ec0b2275 (diff)
Revert "Allow peak check to pass just by accounting for more than 5 peaks"
This reverts commit 693aae4d2219632d15174fe4c4f9d0526d6166c4. Reverting because this allows a very large number (~100% "indexing rate") of false solutions to get through simply by slackening the peak detection parameters. Since we know that "-multi" indexing doesn't work well at the moment, let's fix this properly later.
Diffstat (limited to 'libcrystfel/src')
-rw-r--r--libcrystfel/src/peaks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcrystfel/src/peaks.c b/libcrystfel/src/peaks.c
index 1de7f132..eda43a23 100644
--- a/libcrystfel/src/peaks.c
+++ b/libcrystfel/src/peaks.c
@@ -614,7 +614,7 @@ int peak_sanity_check(struct image *image, Crystal **crystals, int n_cryst)
}
/* 0 means failed test, 1 means passed test */
- return (n_sane > 5) || (((double)n_sane / n_feat) >= 0.5);
+ return ((double)n_sane / n_feat) >= 0.5;
}