From d5e763d6e552b7fe60a9e82d5759e671f8c188f3 Mon Sep 17 00:00:00 2001 From: Niclas Dobbertin Date: Mon, 26 Feb 2024 21:21:50 +0100 Subject: avg rtsum --- experiment/analysis/tools.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'experiment/analysis/tools.py') diff --git a/experiment/analysis/tools.py b/experiment/analysis/tools.py index cde322f..2287a17 100644 --- a/experiment/analysis/tools.py +++ b/experiment/analysis/tools.py @@ -50,7 +50,11 @@ def blocked_time(vp): sum_time = 0 block_i += 1 sum_time += sum_time_over_trial(vp[f"{key_stem}_{trial}"]) - result[block_i] = sum_time + if block_i == 1: + avg = sum_time / 4 + else: + avg = sum_time / 5 + result[block_i] = avg return result -- cgit v1.2.3