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

Commit 9fd8b6e

Browse files
fix wlref bug in if else loop
1 parent e3ad2a6 commit 9fd8b6e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

PythonGUI_apps/Spectrum_analysis/Spectra_plot_fit.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def fit_and_plot(self):
135135
if self.ui.subtract_bck_checkBox.isChecked() == False:
136136
self.ui.result_textBrowser.setText("You need to check the subtract background option!")
137137

138-
elif self.wlref_file != None and self.ui.WLRef_checkBox.isChecked() == False:
138+
elif self.wlref_file is not None and self.ui.WLRef_checkBox.isChecked() == False:
139139
self.ui.result_textBrowser.setText("You need to check the White Light Correction option!")
140140

141141
else:
@@ -195,4 +195,4 @@ def run():
195195
return win
196196

197197
#Uncomment below if you want to run this as standalone
198-
#run()
198+
run()

0 commit comments

Comments
 (0)