mxcubecore.HardwareObjects.ESRF.ESRFPhotonFlux#

Photon flux calculations Example xml_ configuration:

class: ESRF.ESRFPhotonFlux.ESRFPhotonFlux
 configuration:
   counter_name: i0
   threshold: 5000000000.0
   username: Photon flux
 objects:
   aperture: udiff_aperture.yaml
   controller: bliss.yaml

Classes

ESRFPhotonFlux(name)

Photon flux calculation

class mxcubecore.HardwareObjects.ESRF.ESRFPhotonFlux.ESRFPhotonFlux(name)[source]#

Bases: AbstractFlux

Photon flux calculation

get_value()[source]#
Get the flux value as function of a diode reading, the energy

and the aperture factor (if any).

Returns:

The flux value or 0 if below the pre-defined threshold.

Return type:

(float)

init()[source]#

Initialisation