aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/fit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fit.c b/src/fit.c
index 2fb11b9..6e56f9b 100644
--- a/src/fit.c
+++ b/src/fit.c
@@ -5490,8 +5490,8 @@ int fit_event2(event *ev, double *xopt, double *fmin, int *id, size_t n, double
/* Find the peaks in the Hough transform of the event. */
find_peaks(ev, pos, t0, 100, 100, peak_theta, peak_phi, &npeaks, LEN(peak_theta), 0.1);
- /* Don't fit more than 3 peaks for now. */
- if (npeaks > 3) npeaks = 3;
+ /* Don't fit more than 5 peaks for now. */
+ if (npeaks > 5) npeaks = 5;
result = malloc(sizeof(size_t)*n*ipow(npeaks,n));