From e0974555883d29271ba142f258fbf5d7b0c2c8bd Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 2 Dec 2011 22:05:49 +0100 Subject: Remove mysterious centroid=0 in integrate_peak() --- libcrystfel/src/peaks.c | 1 - 1 file changed, 1 deletion(-) 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; -- cgit v1.2.3