In writing the test for , I needed to fit some of the troublesome fit parameters, and found that there's no consistent way to fix fit parameters. lmfit and minuit have different interfaces, and it'd be nice if we provided a central way that handled both. For lmfit, this would mean passing the vary= arg, and for minuit, this is setting fixed=.
Here's what I had to do in the test (tests/fitting_test.py):
In writing the test for, I needed to fit some of the troublesome fit parameters, and found that there's no consistent way to fix fit parameters.
lmfit
andminuit
have different interfaces, and it'd be nice if we provided a central way that handled both. Forlmfit
, this would mean passing thevary=
arg, and forminuit
, this is settingfixed=
.Here's what I had to do in the test (
tests/fitting_test.py
):