bluesky.plan_stubs.repeat¶
-
bluesky.plan_stubs.
repeat
(plan, num=1, delay=None)[source]¶ Repeat a plan num times with delay and checkpoint between each repeat.
This is different from
repeater
andcaching_repeater
in that it addscheckpoint
and optionallysleep
messages if delay is provided. This is intended for users who need the structure ofcount
but do not want to reimplement the control flow.- Parameters
- plan: callable
Callable that returns an iterable of Msg objects
- numinteger, optional
number of readings to take; default is 1
If None, capture data until canceled
- delayiterable or scalar, optional
time delay between successive readings; default is 0
Notes
If
delay
is an iterable, it must have at leastnum - 1
entries or the plan will raise aValueError
during iteration.