PyMcaPlugins Package¶
PyMcaPlugins
Package¶
PyMca5.PyMcaPlugins contains plugins associated to PyMca.
They import either from Plugin1DBase (for instances of classes respecting the Plot1DBase interface) or from StackPluginBase (for instances repecting the StackBase interface)
See PyMca5.PyMcaCore.Plugin1DBase
for more information about 1D plugins
and PyMca5.PyMcaCore.StackPluginBase
for information about stack plugins.
AdvancedAlignmentScanPlugin
Module¶
-
class
PyMca5.PyMcaPlugins.AdvancedAlignmentScanPlugin.
AdvancedAlignmentScanPlugin
(plotWindow, **kw)[source]¶ Bases:
PyMca5.PyMcaCore.Plugin1DBase.Plugin1DBase
-
applyShifts
()[source]¶ Generic shift method. The method shifts curves according to the shift stored in self.shiftDict and executes the method stored in self.shiftMethod.
Curves are sorted with respect to their legend, the values of self.shiftDict are sorted with respect to their key.
-
calculateShifts
()[source]¶ Generic alignment method, executes the method that is set under self.alignmentMethod.
Choices are: - calculateShiftsFit - calculateShiftsFFT - calculateShiftsMax
Sets self.shiftList and self.shiftDict
-
findPeaks
(x, y, thr, derivative)[source]¶ - x,y : ndarrays
- Arrays contain curve intformation
- thr : float
- Threshold in percent of normalized maximum
- derivative : bool
- The derivative of a curve is being fitted
Finds most prominent feature contained in y and tries to estimate starting parameters for a Gaussian least squares fit (LSF). Recommends values used to fit the Gaussian.
- xpeak, ypeak, fwhm : float
- Estimated values for x-position, amplitude and width of the Gaussian
- fwhmIdx : ndarray
- Indices determine the range on which the LSF is performed
-
getAllCurves
(just_legend=False)[source]¶ Ensures that the x-range of the curves is strictly monotonically increasing. Conserves curves legend and info dictionary.
-
getMethods
(plottype=None)[source]¶ A list with the NAMES associated to the callable methods that are applicable to the specified plot.
Plot type can be “SCAN”, “MCA”, None, ...
-
getOrder
()[source]¶ Returns the legends of the curves in the plot winow in the order they were added.
-
getXLimits
(values, overlap=True)[source]¶ - overlap : bool
- True -> returns minimal and maximal x-values
- that are that are still lie within the x-ranges of all curves in plot window
- False -> returns minimal and maximal x-values of
- all curves in plot window
xmin0, xmax0 : float
-
interpolate
(factor=1.0)[source]¶ - factor : float
- factor used to oversample existing data, use with caution.
Interpolates all existing curves to an equidistant x-range using the either the active or the first curve do determine the number of data points. Use this method instead of self.getAllCurves() when performin FFT related tasks.
- interpCurves : ndarray
- Array containing the interpolated curves shown in the plot window. Format: [(x0, y0, legend0, info0), ...]
-
setAlignmentMethod
(methodName)[source]¶ Method receives methodName from AlignmentWidget instance and assigns the according alignment method.
-
setShiftMethod
(methodName)[source]¶ Method receives methodName from AlignmentWidget instance and assigns the according shift method.
-
-
class
PyMca5.PyMcaPlugins.AdvancedAlignmentScanPlugin.
AlignmentWidget
(parent, ddict, llist, plugin)[source]¶ Bases:
PySide.QtGui.QDialog
-
getAlignmentMethodName
()¶
-
getDict
()¶
-
getShiftMethodName
()¶
-
loadDict
()¶
-
saveDict
()¶
-
setDict
(llist, ddict)¶
-
staticMetaObject
= <PySide.QtCore.QMetaObject object>¶
-
store
()¶
-
triggerCalculateShift
(methodName=None)¶
-
validateInput
(row, col)¶
-
AlignmentScanPlugin
Module¶
BackgroundScanPlugin
Module¶
BackgroundStackPlugin
Module¶
CalculationThread
Module¶
ConsolePlugin
Module¶
ConsoleStackPlugin
Module¶
ExternalImagesStackPlugin
Module¶
FastXRFLinearFitStackPlugin
Module¶
FitStackPlugin
Module¶
ImageAlignmentStackPlugin
Module¶
MathPlugins
Module¶
-
class
PyMca5.PyMcaPlugins.MathPlugins.
MathPlugins
(plotWindow, **kw)[source]¶
MedianFilterScanDeglitchPlugin
Module¶
-
class
PyMca5.PyMcaPlugins.MedianFilterScanDeglitchPlugin.
MedianFilterScanDeglitchPlugin
(plotWindow, **kw)[source]¶
MedianFilterScanPlugin
Module¶
-
class
PyMca5.PyMcaPlugins.MedianFilterScanPlugin.
MedianFilterScanPlugin
(plotWindow, **kw)[source]¶
MedianFilterStackPlugin
Module¶
MotorInfoPlugin
Module¶
MotorInfoWindow
Module¶
-
class
PyMca5.PyMcaPlugins.MotorInfoWindow.
MotorInfoComboBox
(parent, mlist, nCol)[source]¶ Bases:
PySide.QtGui.QComboBox
-
currentMotor
()¶
-
emitLoadColumnSignal
()¶
-
loadColumnSignal
= <PySide.QtCore.Signal object>¶
-
staticMetaObject
= <PySide.QtCore.QMetaObject object>¶
-
updateMotorNamesList
(newMotorNamesList)¶
-
-
class
PyMca5.PyMcaPlugins.MotorInfoWindow.
MotorInfoDialog
(parent, legends, motorValues)[source]¶ Bases:
PySide.QtGui.QWidget
-
staticMetaObject
= <PySide.QtCore.QMetaObject object>¶
-
-
class
PyMca5.PyMcaPlugins.MotorInfoWindow.
MotorInfoHeader
(parent)[source]¶ Bases:
PySide.QtGui.QHeaderView
-
addLastSection
()¶
-
deleteLastSection
()¶
-
fixComboPositions
()¶
-
handleSectionResized
(index)¶
-
showEvent
(event)¶
-
staticMetaObject
= <PySide.QtCore.QMetaObject object>¶
-
xOffsetLeft
= 5¶
-
xOffsetRight
= -35¶
-
yOffset
= -1¶
-
MultipleScanToMeshPlugin
Module¶
NNMAStackPlugin
Module¶
NormalizationPlugins
Module¶
-
class
PyMca5.PyMcaPlugins.NormalizationPlugins.
NormalizationPlugins
(plotWindow, **kw)[source]¶