Dummy Detector

class lys_instr.dummy.MultiDetector.MultiDetectorDummy(data=None, indexShape=(), frameShape=(100, 100), exposure=0.1, **kwargs)[source]

Bases: MultiDetectorInterface

Dummy implementation of MultiDetectorInterface.

This class simulates a detector controller for indexed/arrayed data acquisition and error injection for testing purposes.

property axes

Coordinate axes for each dimension of the data.

Returns:

Coordinate axes for each dimension of the data.

Return type:

list[numpy.ndarray]

property frameShape

Shape of each data frame acquired by the detector.

Returns:

The shape of each data frame.

Return type:

tuple of int

property indexShape

Shape of the index grid for data acquisition.

Returns:

The shape of the index grid.

Return type:

tuple of int

setData(data=None, indexShape=None, frameShape=None)[source]
settingsWidget()[source]

Returns a QWidget for optional settings.

Returns:

The optional settings panel.

Return type:

QtWidgets.QWidget