def __init__(self, plot, parent=None): PlotAction.__init__(self, plot, icon='shape-circle', text='Shift up', tooltip='Shift active curve up by one unit', triggered=self.shiftActiveCurveUp, parent=parent)
def __init__(self, plot, parent=None): PlotAction.__init__(self, plot, icon='shape-circle', text='CLEAR', tooltip='Clear Canvas', triggered=self.clear, parent=parent)
def __init__(self, plot, parent=None): PlotAction.__init__(self, plot, icon='compare-align-auto', text='Rixs_et', tooltip='Rotate RIXS plane to energy transfer', triggered=self.rotateImage, parent=parent) raise NotImplementedError
def __init__(self, plot, parent=None): self.icon = qt.QIcon(qt.QPixmap(IconDict["subtract"])) PlotAction.__init__(self, plot, icon=self.icon, text='Subtract Active Curve', tooltip='Subtract active curve from all curves', triggered=self._subtractCurve, parent=parent)
def __init__(self, plot, parent=None): self.icon = qt.QIcon(qt.QPixmap(IconDict["swapsign"])) PlotAction.__init__(self, plot, icon=self.icon, text='Multiply Active Curve by -1', tooltip='Multiply Active Curve by -1', triggered=self._swapSignCurve, parent=parent)
def __init__(self, plot, parent=None): self.icon = qt.QIcon(qt.QPixmap(IconDict["derive"])) PlotAction.__init__(self, plot, icon=self.icon, tooltip='Plot Derivative of Active Curve', text='Derivate Active Curve', triggered=self._derivateActiveCurve, parent=parent)
def __init__(self, plot, parent=None): self.icon = qt.QIcon(qt.QPixmap(IconDict["smooth"])) PlotAction.__init__(self, plot, icon=self.icon, text='Smooth Active Curve', tooltip='Smooth Active Curve', triggered=self._smoothActiveCurve, parent=parent)
def __init__(self, plot, parent=None): self.icon = qt.QIcon(qt.QPixmap(IconDict["average16"])) PlotAction.__init__(self, plot, icon=self.icon, text='Average Plotted Curves', tooltip='Replace all curves by the average curve', triggered=self._averageAllCurves, parent=parent)
def __init__(self, plot, movie=None, parent=None): PlotAction.__init__(self, plot, icon='next', text='resume', tooltip='Resumes the movie of the stacked images', triggered=self.resume_movie, parent=parent) self.movie = movie
def __init__(self, plot, parent=None): PlotAction.__init__( self, plot, icon='slice-horizontal', text='Unfold raw data using only script', tooltip='This action will unfold every image using only scripts.', triggered=self.start_unfolding, parent=parent)
def __init__(self, plot, movie=None, parent=None): PlotAction.__init__(self, plot, icon='item-2dim', text='pause', tooltip='Pauses the movie of the stacked images', triggered=self.pause_movie, parent=parent) self.movie = movie
def __init__(self, plot, parent): PlotAction.__init__(self, plot, icon='clipboard', text='save data', tooltip='Saves unfolded data', triggered=self.save_images, parent=parent) self.parent = parent
def __init__(self, plot, parent=None): self.icon = qt.QIcon(qt.QPixmap(IconDict["ymintozero"])) PlotAction.__init__(self, plot, icon=self.icon, text='Y Min to Zero', tooltip='Shift curve vertically to put min value at 0', triggered=self._yMinToZeroCurve, parent=parent)
def __init__(self, plot, parent=None): PlotAction.__init__( self, plot, icon='slice-cross', text='Unfold raw data using flatfield too', tooltip= 'This action will unfold every image using scripts and flatfield.', triggered=self.start_unfolding, parent=parent)
def __init__(self, plot, parent=None): PlotAction.__init__( self, plot, icon=qt.QIcon(my_icon), text='FFT', tooltip='Perform Fast Fourier Transform on all curves', triggered=self.fftAllCurves, checkable=True, parent=parent)
def __init__(self, plot, parent=None): self.icon = qt.QIcon(qt.QPixmap(IconDict["ymintozero"])) PlotAction.__init__( self, plot, icon=self.icon, text='Y Min to Zero', tooltip='Shift curve vertically to put min value at 0', triggered=self._yMinToZeroCurve, parent=parent)
def __init__(self, plot, images=None, flatfield=None, parent=None): PlotAction.__init__(self, plot, icon='stats-whole-items', text='use flatfield', tooltip='use flatfield to divide raw datas', triggered=self.use_flatfield, parent=parent) self.flatfield = flatfield self.images = images self.already_triggered = False
def __init__(self, plot, nb_images=0, parent=None): PlotAction.__init__(self, plot, icon='camera', text='image movie', tooltip='Runs a movie of the stacked images', triggered=self.ask_interval, parent=parent) self.nb_images = nb_images self.count = 0 self.data_timer = None