Source code for ppc_robot_lib.steps.control.context_clear
from ppc_robot_lib.steps import AbstractStep
from ppc_robot_lib.tasks import TaskContextInterface
[docs]
class ContextClearStep(AbstractStep):
"""
Clears all entries present in the context of the current :py:class:`ppc_robot_lib.work_set.WorkSet`.
"""
def execute(self, task_ctx: TaskContextInterface) -> None:
task_ctx.work_set.context.clear()