1
0
forked from IPKM/nmreval

added autophase; fixes T217

This commit is contained in:
Dominik Demuth
2023-01-07 19:13:13 +01:00
parent 6533754e3a
commit f05d28f6e6
9 changed files with 237 additions and 172 deletions

View File

@ -54,6 +54,21 @@ class PhaseCommand(QtWidgets.QUndoCommand):
self.__data.apply('ph', self.__phase)
class AutophaseCommand(QtWidgets.QUndoCommand):
def __init__(self, data, pvt: float):
super().__init__('Autophase')
self.__data = data
self.__data_data = copy.deepcopy(data.data)
self.__pvt = pvt
def undo(self):
self.__data.data = copy.deepcopy(self.__data_data)
def redo(self):
self.__data.apply('autoph', (self.__pvt,))
class ShiftCommand(QtWidgets.QUndoCommand):
def __init__(self, data, value, mode):
super().__init__('Fourier')