From 7dfddb6214e73c49864edddadea9a7d37a2f0ab0 Mon Sep 17 00:00:00 2001 From: Niclas Dobbertin Date: Sun, 1 Oct 2023 17:05:22 +0200 Subject: fix saving procedure order --- master_thesis/frensch_task.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'master_thesis/frensch_task.py') diff --git a/master_thesis/frensch_task.py b/master_thesis/frensch_task.py index 7617e9d..b680ccd 100644 --- a/master_thesis/frensch_task.py +++ b/master_thesis/frensch_task.py @@ -185,7 +185,7 @@ def run_trial(water_sample, procedure_keys: list, condition): # event.waitKeys(keyList=["space"]) - return answers, procedure_keys + return tuple(answers), tuple(procedure_keys) pause = visual.TextBox2( @@ -256,6 +256,7 @@ for i in range(TEST_TRIALS): answer, procedure_keys = run_trial( all_samples[TRAIN_TRIALS + i], train_procedures, ORDER_CONDITIONS[0] ) + print(procedure_keys) answer_dict = {} answer_dict["procedure_order"] = procedure_keys answer_dict["water_sample"] = all_samples[TRAIN_TRIALS + i].water_sample_dict() -- cgit v1.2.3