aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/src/peaks.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libcrystfel/src/peaks.c b/libcrystfel/src/peaks.c
index e94d87be..82ce1cf3 100644
--- a/libcrystfel/src/peaks.c
+++ b/libcrystfel/src/peaks.c
@@ -254,7 +254,6 @@ int integrate_peak(struct image *image, int cfs, int css,
noise_mean = noise / noise_counts; /* photons */
/* The centroid is excitingly undefined if there is no intensity */
- centroid = 0;
if ( centroid && (total != 0) ) {
*pfs = ((double)fsct / total) + 0.5;
*pss = ((double)ssct / total) + 0.5;