From 1f8846463bae4dc79bedad47e3b1c361c91a28bd Mon Sep 17 00:00:00 2001 From: fjosw Date: Thu, 9 Dec 2021 12:52:26 +0000 Subject: [PATCH] Documentation updated --- docs/pyerrors/fits.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/pyerrors/fits.html b/docs/pyerrors/fits.html index 3bee628d..f3e889f8 100644 --- a/docs/pyerrors/fits.html +++ b/docs/pyerrors/fits.html @@ -496,13 +496,15 @@ if not silent: print('Method: migrad') - m = iminuit.Minuit.from_array_func(chisqfunc, x0, error=np.asarray(x0) * 0.01, errordef=1, print_level=0) + m = iminuit.Minuit(chisqfunc, x0) + m.errordef = 1 + m.print_level = 0 if 'tol' in kwargs: m.tol = kwargs.get('tol') else: m.tol = 1e-4 m.migrad() - params = np.asarray(m.values.values()) + params = np.asarray(m.values) output.chisquare_by_dof = m.fval / len(x)