lbl-anp / becquerel

Becquerel is a Python package for analyzing nuclear spectroscopic measurements.
Other
43 stars 16 forks source link

Model.from_scipy() #340

Open jvavrek opened 2 years ago

jvavrek commented 2 years ago

On occasion we have fit guesses and bounds in scipy format and it would be nice to cleanly pass them to a Model object to take advantage of our lmfit/minuit fitting capabilities. A classmethod like Model.from_scipy() could do the trick, but since that's really lmfit.Model, I don't know how to make this work across the whole module.