Skip to content

Commit a3e9906

Browse files
committed
fix: fix the transform from FSAFrontend to FSA
1 parent e1e7513 commit a3e9906

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

evaluation_function/schemas/fsaFrontend.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,17 +69,17 @@ class Config:
6969
}
7070

7171
@classmethod
72-
def toFSA(cls, data: dict) -> FSA:
72+
def toFSA(cls) -> FSA:
7373
"""
7474
Convert frontend FSA payload (with transitions as "from|symbol|to")
7575
into the FSABackend model with proper Transition objects.
7676
"""
77-
states = data.get("states", [])
78-
alphabet = data.get("alphabet", [])
79-
initial_state = data.get("initial_state", "q0")
80-
accept_states = data.get("accept_states", [])
77+
states = cls.states
78+
alphabet = cls.alphabet
79+
initial_state = cls.initial_state
80+
accept_states = cls.accept_states
8181

82-
flat_transitions = data.get("transitions", [])
82+
flat_transitions = cls.transitions
8383
transitions: List[Transition] = []
8484
for t in flat_transitions:
8585
try:

0 commit comments

Comments
 (0)