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
,WritesExternalAssets
Detector with useful default 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).
NOTE: only for step-scans.
- 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.
Connect self and all child Devices.
describe
describe_configuration
Read the detector
read_configuration
Set
self.name=name
and 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
controller
Return the name of the Device
parent
The parent Device if it exists
writer
- async collect_asset_docs() AsyncIterator[Tuple[Literal['resource'], PartialResource] | Tuple[Literal['datum'], Datum] | Tuple[Literal['stream_resource'], StreamResource] | Tuple[Literal['stream_datum'], StreamDatum]] [source]#
Collect stream datum documents for all indices written.