def fit(self): # set everything up, then call the fit function, finally print out the results in the table self.setParametersFromTable() import Fitting xData, yData = self.getCurrentData() result = Fitting.FitOne(self.getCurrentFunctionName(), self.params, xData, yData) import lmfit lmfit.report_fit(self.params) self.updateParametersTable() self.updatePlot()