Skip to content

Commit

Permalink
Add range to stats.
Browse files Browse the repository at this point in the history
  • Loading branch information
sampottinger committed Dec 5, 2024
1 parent ff29244 commit 69b6e02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sim_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1389,7 +1389,8 @@ def get_stats(key, summaries):
values = [x[key] for x in summaries]
return {
'mean': statistics.mean(values),
'std': statistics.stdev(values)
'std': statistics.stdev(values),
'range': max(values) - min(values)
}

means = get_stats('mean', output_sets_realized)
Expand Down

0 comments on commit 69b6e02

Please sign in to comment.