From b9d067b835f0c74b0d34b4289f5c6917c5544cd8 Mon Sep 17 00:00:00 2001 From: Niclas Dobbertin Date: Fri, 12 Jul 2024 14:05:31 +0200 Subject: progr --- modeling/productions_math.py | 27 ++++++++------------------- 1 file changed, 8 insertions(+), 19 deletions(-) (limited to 'modeling/productions_math.py') diff --git a/modeling/productions_math.py b/modeling/productions_math.py index cbacfa0..1a756c9 100644 --- a/modeling/productions_math.py +++ b/modeling/productions_math.py @@ -1,6 +1,7 @@ #!/usr/bin/env python3 import pyactr as actr +from pprint import pprint from model_init import init import prod_addition @@ -94,6 +95,7 @@ def start(): # if sim.current_event.action == "NO RULE FOUND": # print(goal) if sim.current_event.action == "KEY PRESSED: SPACE": + sim._Simulation__env.stimulus["Answer1"]["text"] = "99" i += 1 print(userinput) print("NEW PROC") @@ -118,27 +120,14 @@ def start(): print("Simulation time: ", sim.show_time()) print("goal: ", goal) print(sim.current_event) - # print(list(env)) + pprint(vars(sim)) + pprint(vars(sim._Simulation__env)) + # print(sim.__env) + # sim.__printenv__() + # print(envs.stimulus) # print("imaginal: ", imaginal) - # imaginal.show("hundreds_ans") - # imaginal.show("tens_ans") - # imaginal.show("ones_ans") - # result_ones = str(getattr(imaginal._data.copy().pop(), "ones_ans")) - # result_tens = str(getattr(imaginal._data.copy().pop(), "tens_ans")) - # result_huns = str(getattr(imaginal._data.copy().pop(), "hundreds_ans")) - - # result_num = result_huns + result_tens + result_ones - # print(result_num) - # print(list(DM)) - # numbers = [ - # x for x in list(DM) if x.typename != "number" and x.typename != "math_op" - # ] - # numbers = [ - # x for x in list(DM) if x.typename != "number" and x.typename == "math_op" - # ] - # print(numbers) math_goals = [sim for sim in list(DM) if sim.typename == "procedure"] - print(math_goals) + # print(math_goals) if __name__ == "__main__": -- cgit v1.2.3