diff options
Diffstat (limited to 'experiment/analysis/tools.py')
-rw-r--r-- | experiment/analysis/tools.py | 6 |
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 |