diff options
author | Thomas White <taw@physics.org> | 2012-06-20 16:00:25 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-06-20 16:00:25 +0200 |
commit | 64a6e175e924f57aa10bbd67ec45df1403a73276 (patch) | |
tree | d34cb384ace2572099a9e85340280782726a8d8a /libcrystfel/src | |
parent | 469518a4cc84348e859e226a8b4d9ef7d7a1479b (diff) |
Revert "Remove deprecated SNR cutoff"
This reverts commit ae51e75490daf47e2deefe83e72a1f5c092fa023.
Diffstat (limited to 'libcrystfel/src')
-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); |