transitions
transitions copied to clipboard
A lightweight, object-oriented finite state machine implementation in Python with many extensions
Hi, In the parallel example of transitions-gui, if you send model.event_on_A() and only model/machine A has the event, but the two machines are running in parallel, then a warning will...
encountering a problem when inheriting `HierarchicalMachine`. ```python from transitions.extensions import HierarchicalMachine as HSM logging.basicConfig(level=logging.DEBUG) logging.getLogger('transitions').setLevel(logging.INFO) class P(HSM): def __init__(self): HSM.__init__(self, states=["A", "B"], transitions=[["run", "A", "B"], ["run", "B", "A"]], initial="A") def...
Used the following code (copied from example at https://github.com/pytransitions/transitions): ``` from transitions.extensions.diagrams import HierarchicalGraphMachine import pyperclip states = ['A', 'B', {'name': 'C', 'final': True, 'parallel': [{'name': '1', 'children': ['a', {"name":...