ezmsg.sigproc.util.message#

Backwards-compatible re-exports from ezmsg.baseproc.util.message.

New code should import directly from ezmsg.baseproc instead.

class SampleMessage(trigger: SampleTriggerMessage, sample: AxisArray)[source]#

Bases: object

Parameters:
__init__(trigger, sample)#
Parameters:
Return type:

None

trigger: SampleTriggerMessage#

The time, window, and value (if any) associated with the trigger.

sample: AxisArray#

The data sampled around the trigger.

class SampleTriggerMessage(timestamp: float = <factory>, period: tuple[float, float] | None=None, value: Any = None)[source]#

Bases: object

Parameters:
timestamp: float#

Time of the trigger, in seconds. The Clock depends on the input but defaults to time.time

period: tuple[float, float] | None = None#

The period around the timestamp, in seconds

value: Any = None#

A value or ‘label’ associated with the trigger.

__init__(timestamp=<factory>, period=None, value=None)#
Parameters:
Return type:

None

is_sample_message(message)[source]#

Check if the message is a SampleMessage.

Parameters:

message (Any)

Return type:

TypeGuard[SampleMessage]