Skip to content

Commit

Permalink
Merge pull request #577 from Sjoerd1993/Save-curve-fit-result-as-list
Browse files Browse the repository at this point in the history
Save curve fit result as list
  • Loading branch information
cmkohnen authored Nov 15, 2023
2 parents 64fe992 + 985ad16 commit 8ab3152
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/curve_fitting.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,8 @@ def add_fit(self, _widget):
application.get_data().add_items([DataItem.new(
style_manager.get_selected_style_params(),
name=self.fitted_curve.get_name(),
xdata=self.fitted_curve.xdata, ydata=self.fitted_curve.ydata,
xdata=list(self.fitted_curve.xdata),
ydata=list(self.fitted_curve.ydata),
)])
self.destroy()

Expand Down

0 comments on commit 8ab3152

Please sign in to comment.