MirroringConfig#
- class pyaseba.client.EventSpec(variables: Sequence[str] = (), use_counter: bool = False, external_counter: str = '', window: int = 1, preamble: str = '', epilog: str = '')#
Describes how
Nodeshould mirror local events.- epilog: str = ''#
Aseba code to append to the event code
- external_counter: str = ''#
If not empty, it select a variable to use as a counter
- preamble: str = ''#
Aseba code to prepend to the event code
- use_counter: bool = False#
Whether to append a counter to the payload
- variables: Sequence[str] = ()#
Which variables to synchronize when the event is emitted
- window: int = 1#
The length of the window over which to average variables. If less or equal 0, it will ignore the event
- class pyaseba.client.MirroringConfig(events: dict[str, pyaseba.client.node.mirroring.EventSpec]=<factory>, function_include: list[str] = <factory>, function_exclude: list[str] = <factory>, script_inits: list[str] = <factory>)#
-
- function_exclude: list[str]#
Regular expressions that prevent local functions from being exposed
- function_include: list[str]#
Regular expressions for local functions to be exposed
- script_inits: list[str]#
Aseba code to add to the preamble (should not define variables)