From d5061fe3eaffb162260887744d53fc9b942201f5 Mon Sep 17 00:00:00 2001 From: codingfabi Date: Sun, 5 May 2024 19:50:49 +0200 Subject: [PATCH] add budget constants --- co2calculator/constants.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/co2calculator/constants.py b/co2calculator/constants.py index 40de5ca..039a1dc 100644 --- a/co2calculator/constants.py +++ b/co2calculator/constants.py @@ -7,6 +7,8 @@ import iso3166 import pandas as pd +from dataclasses import dataclass + KWH_TO_TJ = 277777.77777778 DF_AIRPORTS = pd.read_csv( @@ -14,6 +16,29 @@ ) +@dataclass +class BudgetOnePointFiveDegrees: + """ + Dataclass for budget for 1.5 degrees scenario + + """ + + budget_per_person: float = 34.0 + budget_per_person_and_year: float = 1.4 + budget_per_person_and_year_long: float = 0.0038 + + +@dataclass +class BudgetTwoDegrees: + """ + Dataclass for budget for 2 degrees scenario + """ + + budget_per_person: float = 101.9 + budget_per_person_and_year: float = 4.1 + budget_per_person_and_year_long: float = 3.4 + + class HeatingFuel(enum.Enum): """Enum for heating fuel types"""