diff --git a/backend/apis/GoogleSolarApi.py b/backend/apis/GoogleSolarApi.py index dcf08fb5..00fb98d8 100644 --- a/backend/apis/GoogleSolarApi.py +++ b/backend/apis/GoogleSolarApi.py @@ -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