work on edit signals

This commit is contained in:
Dominik Demuth 2023-11-05 15:22:28 +01:00
commit cb2bc78a2a
2 changed files with 15 additions and 11 deletions

View File

@ -777,12 +777,18 @@ class SignalContainer(ExperimentContainer):
if apod[0] is not None:
self._data.apod(*apod)
if fourier[0] is not None:
if fourier[0]:
if phase[0] is not None:
self._data.manual_phase(*phase)
self.fourier()
else:
self.fourier()
if phase[0] is not None:
self._data.manual_phase(*phase)
# ft with three options: None, True, False
if fourier[0] is None:
# ft None -> only phase correct
if phase[0] is not None:
self._data.manual_phase(*phase)
elif fourier[0] == True:
# ft True -> first phase correct then fft
if phase[0] is not None:
self._data.manual_phase(*phase)
self.fourier()
else:
# ft False -> first fft then phase correct
self.fourier()
if phase[0] is not None:
self._data.manual_phase(*phase)

View File

@ -53,8 +53,6 @@ class QPreviewDialog(QtWidgets.QDialog, Ui_ApodEdit):
pl.hideButtons()
pl.setMenuEnabled(False)
self.time_graph.setLogMode(x=True)
self._all_time = None
self._all_freq = None