File size: 564 Bytes
5822d1f
d53af6d
5822d1f
d53af6d
5822d1f
 
d53af6d
5822d1f
d53af6d
5822d1f
 
 
 
 
 
 
 
 
 
e5d94ad
626c6ea
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from transitions import Machine
from mathtext_fastapi.curriculum_mapper import build_curriculum_logic

all_states, all_transitions = build_curriculum_logic()

class GlobalStateManager(object):
    states = all_states

    transitions = all_transitions

    def __init__(
        self,
        initial_state='N1.1.1_G1',
    ):
        self.machine = Machine(
            model=self,
            states=GlobalStateManager.states,
            transitions=GlobalStateManager.transitions,
            initial=initial_state
        )


curriculum = GlobalStateManager()