mxcubecore.HardwareObjects.mockup.FluxMockup

Mock-up class to simulate the beamline flux, used for testing.

Classes

FluxMockup(name)

Class to simulate beamline flux

class mxcubecore.HardwareObjects.mockup.FluxMockup.FluxMockup(name)[source]

Bases: AbstractFlux

Class to simulate beamline flux

get_value()[source]

Get flux at current transmission in units of photons/s

init()[source]

Initialise some parameters.

property is_beam

Check if there is beam :returns: True if beam present, False otherwise :rtype: (bool)

measure_flux() → None[source]

measures intensity

Emits:

valueChanged (float) – The new flux value

Return type:

None

wait_for_beam(timeout=None)[source]

Wait until beam present :param timeout: optional - timeout [s],

If timeout == 0: return at once and do not wait

(default);

if timeout is None: wait forever.

mxcubecore.HardwareObjects.mockup.FluxMockup.random() → x in the interval [0, 1).