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

Commit 9931f83

Browse files
some comments about parameter windows etc
1 parent ed0831d commit 9931f83

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

PythonGUI_apps/Spectrum_analysis/Spectra_plot_fit.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def plot(self):
135135
self.normalize()
136136

137137
self.ui.plot.plot(self.x, self.y, clear=self.clear_check(), pen='r')
138-
self.ui.Result_textBrowser.setText(str(self.clear_check))
138+
139139
except:
140140
pass
141141
self.ui.plot.setLabel('left', 'Intensity', units='a.u.')
@@ -147,14 +147,15 @@ def normalize(self):
147147

148148
def clear_plot(self):
149149
self.ui.plot.clear()
150-
# self.ui.Result_textBrowser.clear()
150+
self.ui.Result_textBrowser.clear()
151151

152152
def clear_check(self):
153153
if self.ui.clear_checkBox.isChecked() == True:
154154
return True
155155
elif self.ui.clear_checkBox.isChecked() == False:
156156
return False
157157

158+
"""Open param window and get peak center range values and assign it to variables to use later"""
158159
def configure_fit_params(self):
159160
self.param_window = ParamWindow()
160161
self.param_window.peak_range.connect(self.peak_range)
@@ -240,7 +241,7 @@ def close_application(self):
240241
pass
241242

242243

243-
244+
"""Parameter Window GUI and Functions"""
244245
param_file_path = (base_path / "peak_bounds_input.ui").resolve()
245246

246247
param_uiFile = param_file_path
@@ -271,7 +272,8 @@ def current_peak_range(self):
271272
def done(self):
272273
center_min, center_max = self.current_peak_range()
273274
self.peak_range.emit([center_min, center_max])
274-
275+
276+
"""Run the Main Window"""
275277
def run():
276278
win = MainWindow()
277279
QtGui.QApplication.instance().exec_()

0 commit comments

Comments
 (0)