bluesky.plans.count

bluesky.plans.count(detectors, num=1, delay=None, *, per_shot=None, md=None)[source]

Take one or more readings from detectors.

Parameters
detectorslist

list of ‘readable’ objects

numinteger, optional

number of readings to take; default is 1

If None, capture data until canceled

delayiterable or scalar, optional

Time delay in seconds between successive readings; default is 0.

per_shotcallable, optional

hook for customizing action of inner loop (messages per step) Expected signature

def f(detectors: Iterable[OphydObj]) -> Generator[Msg]:
    ...
mddict, optional

metadata

Notes

If delay is an iterable, it must have at least num - 1 entries or the plan will raise a ValueError during iteration.