From ff52130ae894942d8d1006eb5894015300512eed Mon Sep 17 00:00:00 2001 From: Niclas Dobbertin Date: Fri, 21 Jun 2024 14:57:28 +0200 Subject: update --- modeling/productions_math.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'modeling/productions_math.py') diff --git a/modeling/productions_math.py b/modeling/productions_math.py index 120dddf..57a655a 100644 --- a/modeling/productions_math.py +++ b/modeling/productions_math.py @@ -21,6 +21,7 @@ def init(): Model = actr.ACTRModel(environment=env) DM = Model.decmem + Model.visualBuffer("visual", "visual_location", DM, finst=4) goal = Model.goal imaginal = Model.set_goal(name="imaginal", delay=0.2) @@ -208,11 +209,11 @@ def start(): stimuli=envs, triggers="space", ) - while True: - sim.step() - if sim.current_event.action == "KEY PRESSED: SPACE": - break - # x.run(max_time=8) + # while True: + # sim.step() + # if sim.current_event.action == "KEY PRESSED: SPACE": + # break + sim.run(max_time=8) print("Simulation time: ", sim.show_time()) print("goal: ", goal) # print(list(env)) -- cgit v1.2.3