Don't add conformance check to actions (just check always after every step)

This commit is contained in:
Joeri Exelmans 2024-10-28 16:31:57 +01:00
parent d8b52dd5c4
commit 38924237e1

View file

@ -319,8 +319,6 @@ def filter_actions(actions):
def unfilter_actions(actions, od): def unfilter_actions(actions, od):
for name, callback in actions.items(): for name, callback in actions.items():
yield (name, callback) yield (name, callback)
conf = Conformance(state, od.m, od.mm)
yield ("check conformance", lambda: (od, [render_conformance_check_result(conf.check_nominal())]))
def render_woods(od): def render_woods(od):
txt = "" txt = ""
@ -400,3 +398,7 @@ while True:
(od, msgs) = action() (od, msgs) = action()
print(indent('\n'.join(f"{msg}" for msg in msgs), 2)) print(indent('\n'.join(f"{msg}" for msg in msgs), 2))
print()
conf = Conformance(state, od.m, od.mm)
print(render_conformance_check_result(conf.check_nominal()))