Note
Ophyd async is included on a provisional basis until the v1.0 release and may change API on minor release numbers before then
ophyd_async.core.StandardDetector#
- class ophyd_async.core.StandardDetector(controller: DetectorControl, writer: DetectorWriter, config_sigs: Sequence[SignalR] = (), name: str = '', writer_timeout: float = 10.0)[source]#
Bases:
Device,Stageable,Configurable,Readable,Triggerable,Preparable,Flyable,Collectable,WritesStreamAssetsDetector with useful step and flyscan behaviour.
Must be supplied instances of classes that inherit from DetectorControl and DetectorData, to dictate how the detector will be controlled (i.e. arming and disarming) as well as how the detector data will be written (i.e. opening and closing the writer, and handling data writing indices).
- Parameters:
control – instance of class which inherits from
DetectorControldata – instance of class which inherits from
DetectorDataname – detector name
Methods
Checks configuration signals are named and connected.
childrenCollect stream datum documents for all indices written.
completeConnect self and all child Devices.
describedescribe_collectdescribe_configurationget_indexkickoffArm detector
Read the detector
read_configurationSet
self.name=nameand eachself.child.name=name+"-child".Disarm the detector, stop filewriting, and open file for writing.
Arm the detector and wait for it to finish.
Stop data writing.
Attributes
controllerReturn the name of the Device
parentThe parent Device if it exists
writer- prepare(value: T) AsyncStatus[source]#
Arm detector
- async collect_asset_docs(index: int | None = None) AsyncIterator[Tuple[Literal['stream_resource'], StreamResource] | Tuple[Literal['stream_datum'], StreamDatum]][source]#
Collect stream datum documents for all indices written.
The index is optional, and provided for flyscans, however this needs to be retrieved for stepscans.