aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/peaks.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2012-06-20 16:00:25 +0200
committerThomas White <taw@physics.org>2012-06-20 16:00:25 +0200
commit64a6e175e924f57aa10bbd67ec45df1403a73276 (patch)
treed34cb384ace2572099a9e85340280782726a8d8a /libcrystfel/src/peaks.c
parent469518a4cc84348e859e226a8b4d9ef7d7a1479b (diff)
Revert "Remove deprecated SNR cutoff"
This reverts commit ae51e75490daf47e2deefe83e72a1f5c092fa023.
Diffstat (limited to 'libcrystfel/src/peaks.c')
-rw-r--r--libcrystfel/src/peaks.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libcrystfel/src/peaks.c b/libcrystfel/src/peaks.c
index e541ec47..6a7cca34 100644
--- a/libcrystfel/src/peaks.c
+++ b/libcrystfel/src/peaks.c
@@ -726,6 +726,9 @@ void integrate_reflections(struct image *image, int use_closer, int bgsub,
&intensity, &sigma, ir_inn, ir_mid, ir_out,
1);
+ /* I/sigma(I) cutoff */
+ if ( !r && (intensity/sigma < min_snr) ) r = 1;
+
/* Record intensity and set redundancy to 1 on success */
if ( r == 0 ) {
set_intensity(refl, intensity);