diff options
Diffstat (limited to 'master_thesis')
-rw-r--r-- | master_thesis/frensch_task.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/master_thesis/frensch_task.py b/master_thesis/frensch_task.py index 3b3e511..c6b9eae 100644 --- a/master_thesis/frensch_task.py +++ b/master_thesis/frensch_task.py @@ -116,7 +116,9 @@ def run_trial(water_sample, procedure_keys: list, condition): water_sample.print_all() if condition == "random": + overall = procedure_keys.pop() random.shuffle(procedure_keys) + procedure_keys.append(overall) solid = DisplayVariable("Mineralien", [water_sample.solid]) algae = DisplayVariable("Algen", [water_sample.algae]) @@ -185,7 +187,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( @@ -223,7 +225,7 @@ results = {} for i in range(TRAIN_TRIALS): print(train_procedures) answer, procedure_keys = run_trial( - all_samples[i], train_procedures, ORDER_CONDITIONS[0] + all_samples[i], train_procedures, ORDER_CONDITIONS[1] ) answer_dict = {} answer_dict["procedure_order"] = procedure_keys @@ -256,6 +258,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() |