mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
Merge pull request #529 from Hestia-Homes/eco-eligiblity-bug
debugged the solar missing data to push to database
This commit is contained in:
commit
bae23c6d08
1 changed files with 18 additions and 0 deletions
|
|
@ -1031,4 +1031,22 @@ class GoogleSolarApi:
|
|||
},
|
||||
]
|
||||
)
|
||||
|
||||
# We add the key elements that are required for the database
|
||||
panel_performance['lifetime_ac_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="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",
|
||||
)
|
||||
|
||||
return panel_performance
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue