Skip to content

Commit

Permalink
Removed success message
Browse files Browse the repository at this point in the history
  • Loading branch information
adryyan committed Dec 13, 2024
1 parent 7f873ea commit 24ccc77
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions src/iminuit/qtwidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,14 +306,12 @@ def plot_with_frame(self, from_fit, report_success):
fontsize="x-large",
)
if from_fit and report_success:
plt.text(
0.95,
1.05,
f"{'success' if minuit.valid and minuit.accurate else 'FAILURE'}",
transform=trans,
fontsize="x-large",
ha="right",
self.results_text.clear()
self.results_text.setHtml(
f"<div style='text-align: center;'>{minuit.fmin._repr_html_()}</div>"
)
else:
self.results_text.clear()

def fit(self):
if self.algo_choice.currentText() == "Migrad":
Expand All @@ -336,14 +334,6 @@ def on_parameter_change(self, from_fit=False, report_success=False):
report_success = self.do_fit(plot=False)
minuit.fixed = saved

if from_fit:
self.results_text.clear()
self.results_text.setHtml(
f"<div style='text-align: center;'>{minuit.fmin._repr_html_()}</div>"
)
else:
self.results_text.clear()

plt.clf()
self.plot_with_frame(from_fit, report_success)
self.canvas.draw_idle()
Expand Down

0 comments on commit 24ccc77

Please sign in to comment.