You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
The following code does not work:
frompythomata.impl.symbolicimportSymbolicDFAfromsympyimportsymbolsa=symbols("a")
dfa=SymbolicDFA()
dfa.create_state()
dfa.add_transition((0, a, 1))
dfa.set_accepting_state(1, True)
# returns True, correctlydfa.accepts([{"a": True}])
# it raises ValueError: Symbol {a: True} is not valid.dfa.accepts([{a: True}])
The reason is that SymbolicDFA.accepts accepts only PropositionalInterpretation whose labels are of type str and not sympy.Symbol.
Describe the solution you'd like
Make it work. That is, try to be more flexible on the data validation in SymbolicDFA.accepts.
Describe alternatives you've considered
n/a
Additional context
n/a
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
The following code does not work:
The reason is that
SymbolicDFA.accepts
accepts onlyPropositionalInterpretation
whose labels are of typestr
and notsympy.Symbol
.Describe the solution you'd like
Make it work. That is, try to be more flexible on the data validation in
SymbolicDFA.accepts
.Describe alternatives you've considered
n/a
Additional context
n/a
The text was updated successfully, but these errors were encountered: