summaryrefslogtreecommitdiff
path: root/master_thesis
diff options
context:
space:
mode:
authorNiclas Dobbertin <niclas.dobbertin@mailbox.org>2023-10-01 17:05:22 +0200
committerNiclas Dobbertin <niclas.dobbertin@mailbox.org>2023-10-01 17:05:22 +0200
commit7dfddb6214e73c49864edddadea9a7d37a2f0ab0 (patch)
treeb3d0b9b83c46a79bfc75c9d86b9bca7c69e17b8e /master_thesis
parent24a94cb22ed6089264137ac3389fd4e5ba5c5dfc (diff)
fix saving procedure order
Diffstat (limited to 'master_thesis')
-rw-r--r--master_thesis/frensch_task.py3
1 files changed, 2 insertions, 1 deletions
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()