Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit 354c0c3

Browse files
author
LAKESIDE\LindaT18
committed
fix export srv
1 parent 889949e commit 354c0c3

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

PythonGUI_apps/Lifetime_analysis/Lifetime_plot_fit.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,6 @@ def fit_and_plot(self):
270270
self.ui.average_lifetime_spinBox.setValue(tau)
271271

272272
self.data_list.append("Data Channel: " + str(self.ui.Data_channel_spinBox.value()) + "\n" + self.ui.Result_textBrowser.toPlainText())
273-
if self.ui.calculate_srv_groupBox.isChecked():
274-
self.data_list.append(self.get_srv_string())
275273

276274
self.ui.plot.setLabel('left', 'Intensity', units='a.u.')
277275
self.ui.plot.setLabel('bottom', 'Time (ns)')
@@ -385,8 +383,6 @@ def fit_and_plot_with_irf(self):
385383
self.ui.average_lifetime_spinBox.setValue(bestfit_params[1]) #set spinbox to tau value
386384

387385
self.data_list.append("Data Channel: " + str(self.ui.Data_channel_spinBox.value()) + "\n" + self.ui.Result_textBrowser.toPlainText())
388-
if self.ui.calculate_srv_groupBox.isChecked():
389-
self.data_list.append(self.get_srv_string())
390386

391387
except Exception as err:
392388
exc_type, exc_obj, exc_tb = sys.exc_info()
@@ -396,10 +392,13 @@ def call_fit_and_plot(self):
396392
if self.ui.fit_with_irf_checkBox.isChecked():
397393
self.fit_and_plot_with_irf()
398394
if self.ui.calculate_srv_groupBox.isChecked() and self.ui.FittingFunc_comboBox.currentText() == "Stretched Exponential":
399-
#self.calculate_surface_lifetime()
400395
self.calculate_srv()
396+
self.data_list.append(self.get_srv_string())
401397
else:
402398
self.fit_and_plot()
399+
if self.ui.calculate_srv_groupBox.isChecked() and self.ui.FittingFunc_comboBox.currentText() == "Stretched Exponential":
400+
self.calculate_srv()
401+
self.data_list.append(self.get_srv_string())
403402

404403
def calculate_surface_lifetime(self):
405404
effective_lifetime = self.ui.average_lifetime_spinBox.value()

0 commit comments

Comments
 (0)