diff options
author | Thomas White <taw@physics.org> | 2015-12-18 14:14:33 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2015-12-18 14:14:33 +0100 |
commit | 693aae4d2219632d15174fe4c4f9d0526d6166c4 (patch) | |
tree | 25f900a961a6c6733cd0cf6b6eab723bdcef84b8 /libcrystfel | |
parent | d2a2f1928752e518ac7b8798175fd9a010674dd0 (diff) |
Allow peak check to pass just by accounting for more than 5 peaks
The "old" criterion is still allowed for a pass, but would filter out
multi-lattice hits.
Diffstat (limited to 'libcrystfel')
-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 8487a19d..4174bb9f 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 ((double)n_sane / n_feat) >= 0.5; + return (n_sane > 5) || (((double)n_sane / n_feat) >= 0.5); } |