From 39a03d7d0a211358cb94af0e76b3dabc0aa120d5 Mon Sep 17 00:00:00 2001 From: Laurent Alfonsi Date: Tue, 27 Feb 2024 15:24:17 +0100 Subject: compute-variability.py: Fixed weight average computation Change-Id: Idf791494742965fe89672dc3ffedff9b4e74b16f --- compute-variability.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compute-variability.py') diff --git a/compute-variability.py b/compute-variability.py index 66b86ca..4101c69 100755 --- a/compute-variability.py +++ b/compute-variability.py @@ -36,7 +36,7 @@ def parse_args(): """ Routine to compute weighted average. """ def compute_weighted_avg(weights, values): - w = weights.transpose().iloc[0].to_numpy() + w = list(reversed( weights.transpose().iloc[0].to_numpy() )) v = values.iloc[2:-1].astype("float").to_numpy() assert len(w) == len(v) -- cgit v1.2.3