mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-30 13:10:47 +00:00
added the lifetime kwh figures
This commit is contained in:
parent
28c70d0afb
commit
09e5b01c7e
1 changed files with 15 additions and 5 deletions
|
|
@ -198,10 +198,11 @@ class GoogleSolarApi:
|
||||||
)
|
)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def lifetime_production_ac_kwh(
|
def lifetime_production_kwh(
|
||||||
row,
|
row,
|
||||||
efficiency_depreciation_factor,
|
efficiency_depreciation_factor,
|
||||||
installation_life_span
|
installation_life_span,
|
||||||
|
column_name="initial_ac_kwh_per_year"
|
||||||
):
|
):
|
||||||
"""
|
"""
|
||||||
Mimics the function described in the Google Solar API documentation, presenting the lifetime production
|
Mimics the function described in the Google Solar API documentation, presenting the lifetime production
|
||||||
|
|
@ -209,7 +210,7 @@ class GoogleSolarApi:
|
||||||
"""
|
"""
|
||||||
|
|
||||||
return (
|
return (
|
||||||
row["initial_ac_kwh_per_year"] *
|
row[column_name] *
|
||||||
(1 - pow(
|
(1 - pow(
|
||||||
efficiency_depreciation_factor,
|
efficiency_depreciation_factor,
|
||||||
installation_life_span)) /
|
installation_life_span)) /
|
||||||
|
|
@ -284,10 +285,19 @@ class GoogleSolarApi:
|
||||||
|
|
||||||
# 2) Calculate the liftime solar energy production
|
# 2) Calculate the liftime solar energy production
|
||||||
panel_performance['lifetime_ac_kwh'] = panel_performance.apply(
|
panel_performance['lifetime_ac_kwh'] = panel_performance.apply(
|
||||||
self.lifetime_production_ac_kwh,
|
self.lifetime_production_kwh,
|
||||||
axis=1,
|
axis=1,
|
||||||
efficiency_depreciation_factor=self.efficiency_depreciation_factor,
|
efficiency_depreciation_factor=self.efficiency_depreciation_factor,
|
||||||
installation_life_span=self.installation_life_span
|
installation_life_span=self.installation_life_span,
|
||||||
|
column_name="initial_ac_kwh_per_year"
|
||||||
|
)
|
||||||
|
|
||||||
|
panel_performance['lifetime_dc_kwh'] = panel_performance.apply(
|
||||||
|
self.lifetime_production_kwh,
|
||||||
|
axis=1,
|
||||||
|
efficiency_depreciation_factor=self.efficiency_depreciation_factor,
|
||||||
|
installation_life_span=self.installation_life_span,
|
||||||
|
column_name="yearly_dc_energy",
|
||||||
)
|
)
|
||||||
|
|
||||||
# Now that we know the lifetime cnsumption of ac kwh, we can estimate the roi
|
# Now that we know the lifetime cnsumption of ac kwh, we can estimate the roi
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue