bluesky.plan_stubs.one_nd_step#

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

Inner loop of an N-dimensional step scan

This is the default function for per_step param`` in ND plans.

Parameters:
detectorslist or tuple

devices to read

stepdict

mapping motors to positions in this step

pos_cachedict

mapping motors to their last-set positions

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