diff options
author | Thomas White <taw@physics.org> | 2016-01-30 22:22:13 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2016-01-30 22:24:52 +0100 |
commit | 842eac4b578d8d64c594fd87becf5bb552b44884 (patch) | |
tree | 6a8c866335602771ca667b765c205cb456ded1c2 /libcrystfel/src/peaks.c | |
parent | 4b2cc069a16bf564404d9f1020733dd2ec0b2275 (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/peaks.c')
-rw-r--r-- | libcrystfel/src/peaks.c | 2 |
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; } |