aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/peaks.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2012-10-02 16:11:22 +0200
committerThomas White <taw@bitwiz.org.uk>2012-10-02 16:11:22 +0200
commitd9145ab07fec3ca5cc0230337c6fde37c15ead4e (patch)
tree56a4c772078ba8133f05115fe28543204e919f64 /libcrystfel/src/peaks.c
parent0509e8ad099a0e6755b7667b067c8c9303348ec8 (diff)
Use the correct panel number
Diffstat (limited to 'libcrystfel/src/peaks.c')
-rw-r--r--libcrystfel/src/peaks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcrystfel/src/peaks.c b/libcrystfel/src/peaks.c
index f7f6c650..b0b48c2e 100644
--- a/libcrystfel/src/peaks.c
+++ b/libcrystfel/src/peaks.c
@@ -771,7 +771,7 @@ void integrate_reflections(struct image *image, int use_closer, int bgsub,
r = integrate_peak(image, pfs, pss, &fs, &ss,
&intensity, &sigma, ir_inn, ir_mid, ir_out,
- 1, bgMasks[j]);
+ 1, bgMasks[pnum]);
/* I/sigma(I) cutoff */
if ( intensity/sigma < min_snr ) r = 1;