pyFAI.gui.dialog package

pyFAI.gui.dialog.Detector3dDialog module

class pyFAI.gui.dialog.Detector3dDialog.CreateSceneThread(parent=None)

Bases: QThread

__init__(parent=None)
emitProgressValue(value, force=False)
errorString()
getBeamItem()
getDetectorItem()
getSampleItem()
hasGeometry()
isAborted()

Returns whether the theard has aborted or not.

Note

Aborted thead are not finished theads.

progressValue

pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

run(self)
runProcess()
setColormap(colormap)
setDetector(detector)
setGeometry(geometry)
setImage(image)
setMask(mask)
class pyFAI.gui.dialog.Detector3dDialog.Detector3dDialog(parent=None)

Bases: QDialog

Dialog to display a selected geometry

__init__(parent=None)
setData(detector=None, image=None, mask=None, colormap=None, geometry=None)

pyFAI.gui.dialog.DetectorSelectorDialog module

class pyFAI.gui.dialog.DetectorSelectorDialog.DetectorSelectorDialog(parent=None)

Bases: QDialog

__init__(parent=None)
selectDetector(detector)

Select a detector.

Parameters:

detector (pyFAI.detectors.Detector) – Detector to select in this dialog

selectedDetector()

Returns the selected detector.

Return type:

pyFAI.detectors.Detector

class pyFAI.gui.dialog.DetectorSelectorDialog.DetectorSelectorDrop(parent=None)

Bases: QWidget

__init__(parent=None)
createFileDialog(title, h5file=True, splineFile=True, previousFile=None)
createSplineDialog(title, previousFile)
currentCustomField()
currentDetectorClass()
currentManufacturer()
detector()
getOrientation(idx=None)
loadSplineFile()
setDetector(detector)

pyFAI.gui.dialog.GeometryDialog module

class pyFAI.gui.dialog.GeometryDialog.GeometryDialog(parent=None)

Bases: QDialog

Dialog to display a selected geometry

__init__(parent=None)
accept(self)
geometryModel()

Returns the geometry model

Return type:

GeometryModel

isReadOnly()

Returns True if the dialog is in read only.

In read-only mode, the geometry is displayed, but the user can’t edited it.

By default, this returns false.

Return type:

bool

reject(self)
setDetector(detector)

Set the used detector.

This information is needed to display the Fit2D geometry.

setGeometryModel(geometryModel)

Set the geometry to display.

Parameters:

geometryModel (GeometryModel) – A geometry.

setReadOnly(readOnly)

Enable or disable the read-only mode.

Parameters:

readOnly (bool) – True to enable the read-only mode.

pyFAI.gui.dialog.IntegrationMethodDialog module

class pyFAI.gui.dialog.IntegrationMethodDialog.IntegrationMethodDialog(parent=None)

Bases: QDialog

__init__(parent=None)
selectMethod(method)

Select a detector.

Parameters:

detector (pyFAI.detectors.Detector) – Detector to select in this dialog

selectedMethod()

Returns the selected detector.

Return type:

tuple

class pyFAI.gui.dialog.IntegrationMethodDialog.IntegrationMethodWidget(parent=None)

Bases: QWidget

Label displaying a specific OpenCL device.

CodeRole = 257
__init__(parent=None)
method()

Returns method as tuple of split, algo and impl

Return type:

Tuple[str,str,str]

setMethod(method)
setStringMethod(method)
setTupleMethod(method)
sigMethodChanged

pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

pyFAI.gui.dialog.MessageBox module

pyFAI.gui.dialog.MessageBox.exception(parent, title, exc_info, logger=None)

Display an exception as a MessageBox

Parameters:
  • title (str) – A context message (displayed a s a title)

  • parent (qt.QWidget) – The parent widget

  • exc_info (Union[tuple,Exception]) – An exception or the output of exc_info.

  • logger (object) – Logger to record the error inside. If None a default logger is provided.

pyFAI.gui.dialog.OpenClDeviceDialog module

class pyFAI.gui.dialog.OpenClDeviceDialog.OpenClDeviceDialog(parent=None)

Bases: QDialog

Dialog to select an OpenCl device. It could be both select an available device on this machine or a custom one using indexes, or some types of requested devices.

This dialog do not expect PyOpenCL to installed.

__init__(parent=None)
device()

Returns the selected OpenCL device.

A device can be identified as a string like ‘any’, ‘cpu’ or ‘gpu’ or a tuple containing the platform index and the device index.

Return type:

Union[str,Tuple[int,int]]

Raises:

ValueError – If no devices are selected

selectDevice(device)

Select an OpenCL device displayed on this dialog.

A device can be identified as a string like ‘any’, ‘cpu’ or ‘gpu’ or a tuple containing the platform index and the device index.

If this device is available on this platform is is selected in the list. Else it is selected as a custom indexes.

Parameters:

device (Union[str,Tuple[int,int]]) – A device.

showEvent(self, a0: QShowEvent)

Module contents

Module containing generic Qt dialog