Bug fixing in packet

This commit is contained in:
Guille Gutierrez 2023-07-17 16:36:39 -04:00
parent 6941484d59
commit 24546a08d4
2 changed files with 3 additions and 6 deletions

View File

@ -114,9 +114,7 @@ class Cost:
global_capital_incomes['Subsidies PV'] global_capital_incomes['Subsidies PV']
) )
life_cycle_costs_capital_skin = Cost._npv_from_list( life_cycle_costs_capital_skin = self._npv_from_list(df_capital_costs_skin.values.tolist())
self._configuration.discount_rate, df_capital_costs_skin.values.tolist()
)
life_cycle_costs_capital_systems = self._npv_from_list(df_capital_costs_systems.values.tolist()) life_cycle_costs_capital_systems = self._npv_from_list(df_capital_costs_systems.values.tolist())
life_cycle_costs_end_of_life_costs = self._npv_from_list(df_end_of_life_costs.values.tolist()) life_cycle_costs_end_of_life_costs = self._npv_from_list(df_end_of_life_costs.values.tolist())
life_cycle_operational_costs = self._npv_from_list(df_operational_costs.values.tolist()) life_cycle_operational_costs = self._npv_from_list(df_operational_costs.values.tolist())

View File

@ -75,12 +75,11 @@ class TotalOperationalCosts(CostBase):
self._yearly_operational_costs.at[year, 'Fixed_costs_electricity_peak'] = ( self._yearly_operational_costs.at[year, 'Fixed_costs_electricity_peak'] = (
peak_electricity_cost_year_0 * price_increase_peak_electricity peak_electricity_cost_year_0 * price_increase_peak_electricity
) )
self._yearly_operational_costs.at[year, 'Fixed_costs_electricity_monthly'] = ( self._yearly_operational_costs.at[year, 'Fixed_costs_electricity_monthly'] = (
monthly_electricity_cost_year_0 * price_increase_peak_electricity monthly_electricity_cost_year_0 * price_increase_peak_electricity
) )
self._yearly_operational_costs.at[year, 'Variable_costs_electricity'] = float( self._yearly_operational_costs.at[year, 'Variable_costs_electricity'] = (
variable_electricity_cost_year_0 * price_increase_electricity float(variable_electricity_cost_year_0.iloc[0] * price_increase_electricity)
) )
self._yearly_operational_costs.at[year, 'Fixed_costs_gas'] = fixed_gas_cost_year_0 * price_increase_gas self._yearly_operational_costs.at[year, 'Fixed_costs_gas'] = fixed_gas_cost_year_0 * price_increase_gas
self._yearly_operational_costs.at[year, 'Variable_costs_gas'] = ( self._yearly_operational_costs.at[year, 'Variable_costs_gas'] = (