Skip to content

Commit

Permalink
add budget constants
Browse files Browse the repository at this point in the history
  • Loading branch information
codingfabi committed May 5, 2024
1 parent 7b0cba7 commit d5061fe
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions co2calculator/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,38 @@
import iso3166
import pandas as pd

from dataclasses import dataclass

KWH_TO_TJ = 277777.77777778

DF_AIRPORTS = pd.read_csv(
"https://davidmegginson.github.io/ourairports-data/airports.csv"
)


@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"""

Expand Down

0 comments on commit d5061fe

Please sign in to comment.