bluesky.plan_stubs.one_shot#

bluesky.plan_stubs.one_shot(detectors: Sequence[Readable], take_reading: Callable[[Sequence[Readable]], Generator[Msg, Any, Mapping[str, Reading]]] | None = None) Generator[Msg, Any, None][source]#

Inner loop of a count.

This is the default function for per_shot in count plans.

Parameters:
detectorsSequence[OphydObj]

devices to read

take_readingplan, optional

function to do the actual acquisition

def take_reading(dets, name='primary'):
     yield from ...

Callable[List[OphydObj], Optional[str]] -> Generator[Msg], optional

Defaults to trigger_and_read

Yields:
msgMsg