Skip to content

Commit

Permalink
Display fit results
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewSazonov committed Oct 18, 2024
1 parent 06c6327 commit beb8ea4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/easyscience/fitting/minimizers/minimizer_lmfit.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from lmfit import Parameter as LMParameter
from lmfit import Parameters as LMParameters
from lmfit.model import ModelResult
from lmfit import report_fit

# causes circular import when Parameter is imported
# from easyscience.Objects.ObjectClasses import BaseObj
Expand Down Expand Up @@ -135,6 +136,8 @@ def fit(
model = self._make_model()

model_results = model.fit(y, x=x, weights=weights, **method_dict, **minimizer_kwargs, **kwargs)
report_fit(model_results)

self._set_parameter_fit_result(model_results, stack_status)
results = self._gen_fit_results(model_results)
except Exception as e:
Expand Down

0 comments on commit beb8ea4

Please sign in to comment.