From 842eac4b578d8d64c594fd87becf5bb552b44884 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Sat, 30 Jan 2016 22:22:13 +0100 Subject: 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. --- libcrystfel/src/peaks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3