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,- WritesStreamAssets- Detector 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 - DetectorControl
- data – instance of class which inherits from - DetectorData
- name – detector name 
 
 - Methods - Checks configuration signals are named and connected. - children- Collect stream datum documents for all indices written. - complete- Connect self and all child Devices. - describe- describe_collect- describe_configuration- get_index- kickoff- Arm detector - Read the detector - read_configuration- Set - self.name=nameand each- self.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 - controller- Return the name of the Device - parent- The 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.