mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
added costing method for solar thermal
This commit is contained in:
parent
b4d8959c16
commit
709d4aa958
1 changed files with 5 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import numpy as np
|
||||
import pandas as pd
|
||||
from backend.apis.GoogleSolarApi import GoogleSolarApi
|
||||
|
||||
QUARTERLY_ENERGY_PRICES = [
|
||||
# 2024 Q1
|
||||
|
|
@ -282,4 +283,8 @@ class AnnualBillSavings:
|
|||
|
||||
return (kwh / cop) * cost_per_kwh
|
||||
|
||||
if fuel == "Natural Gas + Solar Thermal":
|
||||
# The solar thermal covers a % of the heating kwh, so we need to adjust the cost
|
||||
return (kwh / cop) * GoogleSolarApi.SOLAR_CONSUMPTION_PROPORTION * cls.GAS_PRICE_CAP
|
||||
|
||||
raise Exception("Fuel not recognised")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue