summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/paramfit.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/paramfit.py b/lib/paramfit.py
index 44ff0a6..05ffb86 100644
--- a/lib/paramfit.py
+++ b/lib/paramfit.py
@@ -214,6 +214,7 @@ def _try_fits(
(-np.inf, -np.inf, np.min(X)),
(np.inf, np.inf, np.max(X)),
)
+ ini[2] = np.mean(X)
try:
res = optimize.least_squares(
error_function,