umd Module¶
- class tallypi.outputs.umd.ClientData(hostaddr: str, hostport: int)[source]¶
Bases:
objectContainer for network client data
- tallypi.outputs.umd.ClientOrData¶
ClientorClientDataalias of
Union[Tuple[str,int],tallypi.outputs.umd.ClientData]
- class tallypi.outputs.umd.UmdOutput(*args, **kwargs)[source]¶
Bases:
tallypi.baseio.BaseOutputNetworked tally output using the UMDv5 protocol
- Parameters
config (MultiTallyConfig) – The initial value for
configclients (Iterable[ClientOrData], optional) – The initial
clientsto setall_off_on_close – (bool, optional): Value to set for
all_off_on_close
- Properties
- clients: set → SetProperty(set)¶
A
SetPropertycontaining the remote host addresses as address/port tuples.
- sender: tslumd.sender.UmdSender¶
The
tslumd.sender.UmdSenderinstance
- property all_off_on_close: bool¶
Alias for
tslumd.sender.UmdSender.all_off_on_close.If
True, the sender will turn all tally indicators off before closing. Default isFalse
- classmethod get_init_options() → Tuple[tallypi.config.Option][source]¶
Get the
config.Optiondefinitions required for this object
- add_client(client: Union[Tuple[str, int], tallypi.outputs.umd.ClientData])[source]¶
Add an item to
clients
- remove_client(client: Union[Tuple[str, int], tallypi.outputs.umd.ClientData])[source]¶
Remove an item from
clients
- async on_receiver_tally_change(tally: tslumd.tallyobj.Tally, props_changed: Set[str], **kwargs)[source]¶
Callback for tally updates from
tslumd.tallyobj.Tally