From 9623fba3b9c63f7587cf1210c5a6694c9098db88 Mon Sep 17 00:00:00 2001 From: han16nah Date: Mon, 6 May 2024 08:05:01 +0200 Subject: [PATCH] make sure heating fuel type is called the same in all data csv files --- co2calculator/data/conversion_factors_heating.csv | 2 +- tests/data/conversion_factors_heating.csv | 7 +++++++ tests/data/emission_factors_heating.csv | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 tests/data/conversion_factors_heating.csv diff --git a/co2calculator/data/conversion_factors_heating.csv b/co2calculator/data/conversion_factors_heating.csv index c27fd28..fd0f71a 100644 --- a/co2calculator/data/conversion_factors_heating.csv +++ b/co2calculator/data/conversion_factors_heating.csv @@ -2,6 +2,6 @@ 0,oil,l,10.6 1,liquid gas,kg,14.1 2,coal,kg,6.0 -3,wood pellet,kg,5.4 +3,wood pellets,kg,5.4 4,wood chips,kg,5.2 5,gas,m^3,10.8 diff --git a/tests/data/conversion_factors_heating.csv b/tests/data/conversion_factors_heating.csv new file mode 100644 index 0000000..addc42f --- /dev/null +++ b/tests/data/conversion_factors_heating.csv @@ -0,0 +1,7 @@ +,fuel_type,unit,conversion_value +0,oil,l,10.6 +1,liquid gas,kg,14.1 +2,coal,kg,6.0 +3,wood pellets,kg,5.4 +4,wood chips,kg,5.2 +5,gas,m^3,10.8 diff --git a/tests/data/emission_factors_heating.csv b/tests/data/emission_factors_heating.csv index ae9e1a8..3749144 100644 --- a/tests/data/emission_factors_heating.csv +++ b/tests/data/emission_factors_heating.csv @@ -1,7 +1,7 @@ ,country_code,category,source,name,unit,fuel_type,co2e_unit,co2e 0,global,heating,"UK, Department for Business, Energy & Industrial Strategy",coal (domestic),kWh,coal,kg/kWh,0.35 1,global,heating,"UK, Department for Business, Energy & Industrial Strategy",natural gas,kWh,gas,kg/kWh,0.18 -2,global,heating,"UK, Department for Business, Energy & Industrial Strategy",LPG,kWh,liquid_gas,kg/kWh,0.21 +2,global,heating,"UK, Department for Business, Energy & Industrial Strategy",LPG,kWh,liquid gas,kg/kWh,0.21 3,global,heating,"UK, Department for Business, Energy & Industrial Strategy",fuel oil,kWh,oil,kg/kWh,0.27 4,global,heating,"UK, Department for Business, Energy & Industrial Strategy",wood pellets,kWh,wood pellets,kg/kWh,0.01074 5,global,heating,"UK, Department for Business, Energy & Industrial Strategy",wood chips,kWh,wood chips,kg/kWh,0.01074