You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from lmfit.models import GaussianModel
mod = GausssiaModel(prefix='g1_')
# this works
mod.make_params(amplitude=1, center=2000, sigma=20)
# this fails
mod.make_params(g1_amplitude=1, g1_center=2000, g1_sigma=20)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/..../lmfit-py/lmfit/model.py", line 703, in make_params
setpar(par, kwargs[basename])
KeyError: 'amplitude'
Note that if a composite model was created, the g1_amplitude variation would work and be required
Description
This issue was shown in #892
A Minimal, Complete, and Verifiable example
Note that if a composite model was created, the
g1_amplitude
variation would work and be requiredFit report:
Error message:
The error is shown in #892, but repeated here:
Version information
Latest.
Link(s)
#892
The text was updated successfully, but these errors were encountered: