ibex_bluesky_core.devices.simpledae.waiters

DAE waiting strategies.

Members

GoodFramesWaiter

Wait for good frames to reach a user-specified value.

GoodUahWaiter

Wait for good microamp-hours to reach a user-specified value.

MEventsWaiter

Wait for a user-specified number of millions of events.

PeriodGoodFramesWaiter

Wait for period good frames to reach a user-specified value.

SimpleWaiter

Wait for a single DAE variable to be greater or equal to a specified numeric value.

TimeWaiter

Wait for a user-specified time duration.

class ibex_bluesky_core.devices.simpledae.waiters.GoodFramesWaiter(value: T)[source]

Bases: SimpleWaiter[int]

Wait for good frames to reach a user-specified value.

Wait for a value to be at least equal to the specified value.

Parameters:

value – the value to wait for

get_signal(dae: SimpleDae) SignalR[int][source]

Wait for good frames.

class ibex_bluesky_core.devices.simpledae.waiters.GoodUahWaiter(value: T)[source]

Bases: SimpleWaiter[float]

Wait for good microamp-hours to reach a user-specified value.

Wait for a value to be at least equal to the specified value.

Parameters:

value – the value to wait for

get_signal(dae: SimpleDae) SignalR[float][source]

Wait for good uah.

class ibex_bluesky_core.devices.simpledae.waiters.MEventsWaiter(value: T)[source]

Bases: SimpleWaiter[float]

Wait for a user-specified number of millions of events.

Wait for a value to be at least equal to the specified value.

Parameters:

value – the value to wait for

get_signal(dae: SimpleDae) SignalR[float][source]

Wait for mevents.

class ibex_bluesky_core.devices.simpledae.waiters.PeriodGoodFramesWaiter(value: T)[source]

Bases: SimpleWaiter[int]

Wait for period good frames to reach a user-specified value.

Wait for a value to be at least equal to the specified value.

Parameters:

value – the value to wait for

get_signal(dae: SimpleDae) SignalR[int][source]

Wait for period good frames.

class ibex_bluesky_core.devices.simpledae.waiters.SimpleWaiter(value: T)[source]

Bases: Waiter, Generic[T]

Wait for a single DAE variable to be greater or equal to a specified numeric value.

Wait for a value to be at least equal to the specified value.

Parameters:

value – the value to wait for

additional_readable_signals(dae: SimpleDae) list[Device][source]

Publish the signal we’re waiting on as an interesting signal.

abstract get_signal(dae: SimpleDae) SignalR[T][source]

Get the numeric signal to wait for.

async wait(dae: SimpleDae) None[source]

Wait for signal to reach the user-specified value.

class ibex_bluesky_core.devices.simpledae.waiters.TimeWaiter(*, seconds: float)[source]

Bases: Waiter

Wait for a user-specified time duration.

Init.

Parameters:

seconds – number of seconds to wait for.

async wait(dae: SimpleDae) None[source]

Wait for the specified time duration.