debugged the solar missing data to push to database

This commit is contained in:
Khalim Conn-Kowlessar 2025-11-04 10:53:22 +00:00
parent 8a8389a4bb
commit 1edd75c913

View file

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