dodal.devices.electron_analyser.base#

Classes

ElectronAnalyserController

Specialised controller for the electron analysers to provide additional setup logic such as selecting the energy source to use from requested region and giving the driver the correct region parameters.

BaseElectronAnalyserDetector

Detector for data acquisition of electron analyser.

ElectronAnalyserDetector

Electron analyser detector with the additional functionality to load a sequence file and create a list of temporary ElectronAnalyserRegionDetector objects.

ElectronAnalyserRegionDetector

Extends electron analyser detector to configure specific region settings before data acquisition.

AbstractAnalyserDriverIO

Driver device that defines signals and readables that should be common to all electron analysers.

EnergyMode

AbstractBaseRegion

Generic region model that holds the data.

AbstractBaseSequence

Generic sequence model that holds the list of region data.

GenericRegion

alias of AbstractBaseRegion[StrictEnum, Union[SupersetEnum, StrictEnum], Union[StrictEnum, float]]

GenericSequence

alias of AbstractBaseSequence[AbstractBaseRegion[StrictEnum, Union[SupersetEnum, StrictEnum], Union[StrictEnum, float]]]

AbstractEnergySource

Abstract device that wraps an energy source signal and provides common interface via a energy signal.

DualEnergySource

Holds two EnergySource devices and provides a signal to read energy depending on which source is selected.

EnergySource

Wraps a signal that relates to energy and provides common interface via energy signal.

Functions

to_binding_energy(value, value_mode, ...)

Convert a value that is kinetic energy to binding energy.

to_kinetic_energy(value, value_mode, ...)

Convert a value that is binding energy to kinetic energy.

dodal.devices.electron_analyser.base.to_binding_energy(value: float, value_mode: EnergyMode, excitation_energy: float) float[source]#

Convert a value that is kinetic energy to binding energy.

Parameters:
  • value (float) – The value to convert.

  • value_mode (EnergyMode) – Energy mode of the value. If it is already binding, return the same value. If it is kinetic, convert to binding.

  • excitation_energy (float) – Value to calculate the conversion.

Returns:

Caluclated binding energy value.

Return type:

float

dodal.devices.electron_analyser.base.to_kinetic_energy(value: float, value_mode: EnergyMode, excitation_energy: float) float[source]#

Convert a value that is binding energy to kinetic energy.

Parameters:
  • value (float) – The value to convert.

  • value_mode (EnergyMode) – Energy mode of the value. If it is already kinetic, return the same value. If it is binding, convert to kinetic.

  • excitation_energy (float) – Value to calculate the conversion.

Returns:

Caluclated kinetic energy value.

Return type:

float