From 835407184f0759a2d3078ce67364abccb4ae6cea Mon Sep 17 00:00:00 2001 From: Guille Date: Wed, 2 Aug 2023 15:46:20 -0400 Subject: [PATCH] Correct emission factor --- co2_emission/co2_emission.py | 7 +++---- dist/.gitignore | 2 ++ dist/cerc-co2-emission-0.1.0.0.tar.gz | Bin 2828 -> 0 bytes dist/cerc_co2_emission-0.1.0.0-py3-none-any.whl | Bin 3282 -> 0 bytes 4 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 dist/.gitignore delete mode 100644 dist/cerc-co2-emission-0.1.0.0.tar.gz delete mode 100644 dist/cerc_co2_emission-0.1.0.0-py3-none-any.whl diff --git a/co2_emission/co2_emission.py b/co2_emission/co2_emission.py index fd98923..bf3c4d0 100644 --- a/co2_emission/co2_emission.py +++ b/co2_emission/co2_emission.py @@ -15,10 +15,9 @@ class Co2Emission: def __init__(self, building: Building, emissions_factor=None): if emissions_factor is None: - emissions_factor = {cte.GAS: 1, - cte.ELECTRICITY: 1, - cte.WOOD: 1, - cte.DIESEL: 1, + emissions_factor = {cte.GAS: 0.2025, + cte.ELECTRICITY: 0.00113, + cte.DIESEL: 0.2683, cte.RENEWABLE: 0} self._emissions_factor = emissions_factor self._building = building diff --git a/dist/.gitignore b/dist/.gitignore new file mode 100644 index 0000000..c96a04f --- /dev/null +++ b/dist/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore \ No newline at end of file diff --git a/dist/cerc-co2-emission-0.1.0.0.tar.gz b/dist/cerc-co2-emission-0.1.0.0.tar.gz deleted file mode 100644 index cdad2ff79ff41db4ce778e3adf86b7883732d5e6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2828 zcmV+n3-k0JiwFq0^uuHV|6^rxV=ZHEGA(6oX>)UFZ*DCxE-@}JE-)^1VR8WNU3+gL zITD}0Tbl1+F(&~h=xN?NNQ^eiuo<+OfC967t6bDF-3Gkd56*_Hd1 zhLD8p5O!x%6)AvSUAD_E|NN}hU+b^G9n;V68MT>s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