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.DetectorWriter#
- class ophyd_async.core.DetectorWriter[source]#
Bases:
ABC
Logic for making a detector write data to somewhere persistent (e.g. an HDF5 file)
Methods
Close writer, blocks until I/O is complete
Create Stream docs up to given number written
Get the number of indices written
Yield the index of each frame (or equivalent data point) as it is written
Open writer and wait for it to be ready for data.
- abstract async open(multiplier: int = 1) Dict[str, DataKey] [source]#
Open writer and wait for it to be ready for data.
- Args:
- multiplier: Each StreamDatum index corresponds to this many
written exposures
- Returns:
Output for
describe()
- abstract observe_indices_written(timeout=10.0) AsyncGenerator[int, None] [source]#
Yield the index of each frame (or equivalent data point) as it is written