diff options
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 8e0acce7..e94d87be 100644 --- a/libcrystfel/src/peaks.c +++ b/libcrystfel/src/peaks.c @@ -417,7 +417,7 @@ static void search_peaks_in_panel(struct image *image, float threshold, continue; } - if ( intensity/sigma < min_snr ) { + if ( fabs(intensity)/sigma < min_snr ) { nrej_snr++; continue; } |