Skip to content

Commit

Permalink
fix: 🐛 condition for setting computional message
Browse files Browse the repository at this point in the history
  • Loading branch information
Anselmoo committed Jan 21, 2024
1 parent 463d708 commit 70505c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spectrafit/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,8 @@ def _extracted_computional_from_results(
Dict[str, Any]: The buffer with updated results.
"""
buffer["computional"]["success"] = result.success
buffer["computional"]["message"] = result.message
if hasattr(result, "message"):
buffer["computional"]["message"] = result.message
buffer["computional"]["errorbars"] = result.errorbars
buffer["computional"]["nfev"] = result.nfev

Expand Down

0 comments on commit 70505c8

Please sign in to comment.