Skip to content

Commit 1a56a6b

Browse files
author
LAKESIDE\LindaT18
committed
fix call_fit_and_plot
1 parent 354c0c3 commit 1a56a6b

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

PythonGUI_apps/Lifetime_analysis/Lifetime_plot_fit.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -391,14 +391,11 @@ def fit_and_plot_with_irf(self):
391391
def call_fit_and_plot(self):
392392
if self.ui.fit_with_irf_checkBox.isChecked():
393393
self.fit_and_plot_with_irf()
394-
if self.ui.calculate_srv_groupBox.isChecked() and self.ui.FittingFunc_comboBox.currentText() == "Stretched Exponential":
395-
self.calculate_srv()
396-
self.data_list.append(self.get_srv_string())
397394
else:
398395
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())
396+
if self.ui.calculate_srv_groupBox.isChecked():
397+
self.calculate_srv()
398+
self.data_list.append(self.get_srv_string())
402399

403400
def calculate_surface_lifetime(self):
404401
effective_lifetime = self.ui.average_lifetime_spinBox.value()

0 commit comments

Comments
 (0)