From 4f8cc6346143504661e434d6e112913ebb28c659 Mon Sep 17 00:00:00 2001 From: lisazeyen Date: Fri, 12 Apr 2024 13:58:01 +0200 Subject: [PATCH] clarify units --- scripts/build_energy_totals.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/build_energy_totals.py b/scripts/build_energy_totals.py index b56d3294..61e845d8 100644 --- a/scripts/build_energy_totals.py +++ b/scripts/build_energy_totals.py @@ -394,14 +394,13 @@ def build_idees(countries): keys=countries, names=["country", "year"], ) - + + # efficiency kgoe/100km -> ktoe/100km + totals.loc[:, "passenger car efficiency"] *= 1e3 # convert ktoe to TWh exclude = totals.columns.str.fullmatch("passenger cars") totals.loc[:, ~exclude] *= 11.63 / 1e3 - # convert TWh/100km to kWh/km - totals.loc[:, "passenger car efficiency"] *= 10 - return totals