summaryrefslogtreecommitdiff
path: root/experiment/analysis/tools.py
diff options
context:
space:
mode:
authorNiclas Dobbertin <niclas.dobbertin@mailbox.org>2024-02-26 21:21:50 +0100
committerNiclas Dobbertin <niclas.dobbertin@mailbox.org>2024-02-26 21:21:50 +0100
commitd5e763d6e552b7fe60a9e82d5759e671f8c188f3 (patch)
tree6f3a13b44cdd16ddc167a63524074fa95ef4eec5 /experiment/analysis/tools.py
parent22074d8dbea46fadbd12dafb27a4aa9006d3c7d1 (diff)
avg rtsum
Diffstat (limited to 'experiment/analysis/tools.py')
-rw-r--r--experiment/analysis/tools.py6
1 files changed, 5 insertions, 1 deletions
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