diff options
-rw-r--r-- | libcrystfel/src/peaks.c | 3 |
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); |