Yaml2Archiving Action

Action

class yaml2archiving.v1.action.Actions
added: Dict[str, Tuple[AttributeConfig, AttributeConfig]]
changed: Dict[str, Tuple[AttributeConfig, AttributeConfig]]
removed: Dict[str, AttributeConfig]
yaml2archiving.v1.action.get_actions(prev_attrs: Dict[str, AttributeConfig], next_attrs: Dict[str, AttributeConfig], use_old_format: bool = False) Actions[source]

Takes “previous” and “next” attribute configurations, then produces a list of actions needed to go from the first situation to the second. I.e. additions, removals and changes.

yaml2archiving.v1.action.get_archiving_settings(manager: tango.DeviceProxy)[source]

Return the current “set attribute” values for the manager as a string. These are the parameters filled in before running “AddAttribute”. Can be useful for debugging issues.

yaml2archiving.v1.action.get_safe_params(attr: str, old: AttributeConfig, new: AttributeConfig) AttributeConfig[source]

Do some checks on the given params and return a ‘safe’ version

yaml2archiving.v1.action.perform_actions(manager: str, archiver: str, actions, update=False, delay=0, get_device_proxy=tango.DeviceProxy, get_attribute_proxy=tango.AttributeProxy, use_old_format=False)[source]

Take a bunch of “actions” and apply them to the control system.

yaml2archiving.v1.action.show_actions(actions: Actions, update: bool = False)[source]

Return some actions formatted in a human readable way.