pyFAI.gui.dialog package

pyFAI.gui.dialog.Detector3dDialog module

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

Bases: PyQt5.QtCore.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: PyQt5.QtWidgets.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

pyFAI.gui.dialog.GeometryDialog module

pyFAI.gui.dialog.IntegrationMethodDialog module

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

Bases: PyQt5.QtWidgets.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: PyQt5.QtWidgets.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: PyQt5.QtWidgets.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, QShowEvent)

Module contents

Module containing generic Qt dialog