dodal.devices.electron_analyser.base.ElectronAnalyserDetector#
- class dodal.devices.electron_analyser.base.ElectronAnalyserDetector[source]#
Electron analyser detector with the additional functionality to load a sequence file and create a list of temporary ElectronAnalyserRegionDetector objects. These will setup configured region settings before data acquisition.
- Parameters:
controller (
ElectronAnalyserController[TypeVar(TAbstractAnalyserDriverIO, bound=AbstractAnalyserDriverIO),TypeVar(TAbstractBaseRegion, bound=AbstractBaseRegion)])name (
str, default:'')
Methods
create_region_detector_list(regions)This method can hopefully be dropped when this is merged and released.
stage()Prepare the detector for use by ensuring it is idle and ready.
unstage()Disarm the detector.
Attributes
- stage() None[source]#
Prepare the detector for use by ensuring it is idle and ready.
This method asynchronously stages the detector by first disarming the controller to ensure the detector is not actively acquiring data, then invokes the driver’s stage procedure. This ensures the detector is in a known, ready state before use.
- Raises:
Any exceptions raised by the driver's stage or controller's disarm methods. –
- Return type:
- create_region_detector_list(regions: list[TAbstractBaseRegion]) list[ElectronAnalyserRegionDetector[TAbstractAnalyserDriverIO, TAbstractBaseRegion]][source]#
This method can hopefully be dropped when this is merged and released. bluesky/bluesky#1978.
Create a list of detectors equal to the number of regions. Each detector is responsible for setting up a specific region.
- Parameters:
regions (
list[TypeVar(TAbstractBaseRegion, bound=AbstractBaseRegion)]) – The list of regions to give to each region detector.- Return type:
list[ElectronAnalyserRegionDetector[TypeVar(TAbstractAnalyserDriverIO, bound=AbstractAnalyserDriverIO),TypeVar(TAbstractBaseRegion, bound=AbstractBaseRegion)]]- Returns:
List of ElectronAnalyserRegionDetector, equal to the number of regions in the sequence file.