Beispiel #1
0
 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)
Beispiel #2
0
 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)
Beispiel #3
0
 def __init__(self, plot, parent=None):
     PlotAction.__init__(self,
                         plot,
                         icon='shape-circle',
                         text='CLEAR',
                         tooltip='Clear Canvas',
                         triggered=self.clear,
                         parent=parent)
Beispiel #4
0
 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
Beispiel #5
0
 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)
Beispiel #6
0
 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)
Beispiel #7
0
 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)
Beispiel #8
0
 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)
Beispiel #9
0
 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)
Beispiel #10
0
 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)
Beispiel #11
0
 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
Beispiel #12
0
 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)
Beispiel #13
0
 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
Beispiel #14
0
 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
Beispiel #15
0
 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)
Beispiel #16
0
 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)
Beispiel #17
0
 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)
Beispiel #18
0
 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)
Beispiel #19
0
 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)
Beispiel #20
0
 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)
Beispiel #22
0
 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)
Beispiel #23
0
 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)
Beispiel #24
0
 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
Beispiel #25
0
 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