Skip to content

Commit 90c6684

Browse files
Fix missing key error
1 parent 1e2b963 commit 90c6684

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pytimeloop/timeloopfe/v4/output_parsing.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ def aggregate(tests: List["OutputStats"]) -> "OutputStats":
209209
for k, v in t.accesses.items():
210210
accumulator = results["accesses"].get(k, {})
211211
for metric in ["reads", "fills", "updates"]:
212+
accumulator.setdefault(metric, 0)
212213
accumulator[metric] += v[metric]
213214
results["accesses"][k] = accumulator
214215

0 commit comments

Comments
 (0)