Commit 8716acab authored by Wout De Nolf's avatar Wout De Nolf
Browse files

the average raw noise was wrong in the noise widget

parent 49a6211d
Pipeline #81625 passed with stages
in 5 minutes and 28 seconds
......@@ -7,7 +7,6 @@ from est.gui.XasObjectViewer import (
_plot_noise_savgol,
_plot_raw_noise_savgol,
)
import numpy
class _QOddSpinBox(qt.QSpinBox):
......@@ -174,8 +173,8 @@ class SavitskyGolayNoiseOpts(qt.QWidget):
self.sigChanged.emit()
def setSpectrum(self, spectrum):
if spectrum.noise_savgol is not None:
self._rawData.setText("{:.5E}".format(numpy.mean(spectrum.noise_savgol)))
if spectrum.raw_noise_savgol is not None:
self._rawData.setText("{:.5E}".format(spectrum.raw_noise_savgol))
else:
self._rawData.clear()
if hasattr(spectrum, "edge_step"):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment