Skip to content

Commit

Permalink
feat: account for inflation in DC cost calcs
Browse files Browse the repository at this point in the history
  • Loading branch information
danielolsen committed Oct 16, 2020
1 parent 077ca83 commit 9bfa97f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions powersimdata/design/investment/investment_costs.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,9 @@ def calculate_dc_inv_costs(scenario):
def _calculate_dc_inv_costs(grid_new):
"""Given a grid, calculate the total cost of that grid's dc line investment.
This function is separate from calculate_dc_inv_costs() for testing purposes.
Currently ignores financials, but all values are in 2015 $-year.
:param powersimdata.input.grid.Grid grid_new: grid instance.
:return: (*float*) -- Total dc line costs (in $2015).
:return: (*float*) -- Total dc line costs.
"""

def _calculate_single_line_cost(line, bus):
Expand Down Expand Up @@ -220,7 +219,7 @@ def _calculate_single_line_cost(line, bus):
if len(dcline != 0):
return dcline.apply(_calculate_single_line_cost, args=(bus,), axis=1).sum()
else:
return 0
return 0.0


def calculate_gen_inv_costs(scenario, year, cost_case):
Expand Down

0 comments on commit 9bfa97f

Please sign in to comment.