From c6b7dfc23a494f244114ddf64fb3e22bc3cb969b Mon Sep 17 00:00:00 2001 From: elsid Date: Sun, 24 Dec 2023 22:55:11 +0100 Subject: [PATCH] Convert to float to compute stdev --- scripts/osg_stats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/osg_stats.py b/scripts/osg_stats.py index 79f0a8a0b9..8c504dcad7 100755 --- a/scripts/osg_stats.py +++ b/scripts/osg_stats.py @@ -350,7 +350,7 @@ def make_stats(source, key, values, precision): sum=fixed_float(sum(values), precision), mean=fixed_float(statistics.mean(values), precision), median=fixed_float(statistics.median(values), precision), - stdev=fixed_float(statistics.stdev(values), precision), + stdev=fixed_float(statistics.stdev(float(v) for v in values), precision), q95=fixed_float(numpy.quantile(values, 0.95), precision), )