Commit 53bc496d authored by Gregor Moenke's avatar Gregor Moenke

fix ssg Fourier

parent 33f8bbf5
......@@ -1119,27 +1119,22 @@ class SynthSignalGen(QWidget):
# shift new analyser windows
self.w_position += 20
if self.cb_use_detrended2.isChecked() and not self.T_c:
self.NoTrend = MessageWindow(
"Detrending not set, can not use detrended signal!", "No Trend"
)
return
elif self.cb_use_detrended2.isChecked():
if self.cb_use_detrended2.isChecked():
trend = self.calc_trend()
signal = self.raw_signal - trend
if trend is not None:
signal = self.raw_signal - trend
else:
return
else:
signal = self.raw_signal
if self.cb_use_envelope2.isChecked() and not self.L:
self.NoTrend = MessageWindow(
"Envelope parameter not set,\n" + "specify a sliding window size!",
"No Envelope",
)
return
elif self.cb_use_envelope2.isChecked():
signal = pyboat.normalize_with_envelope(signal, self.L, self.dt)
if self.cb_use_envelope2.isChecked():
L = self.get_L(self.L_edit)
if L is not None:
signal = pyboat.normalize_with_envelope(signal, L, self.dt)
else:
return
# periods or frequencies?
if self.cb_FourierT.isChecked():
......
Markdown is supported
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