Skip to content

Commit 31e5d06

Browse files
WIP stash
1 parent bb947c6 commit 31e5d06

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/geophires_x/Economics.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,8 @@ def BuildPTCModel(plantlifetime: int, duration: int, ptc_price: float,
163163

164164

165165
def BuildPricingModel(plantlifetime: int, StartPrice: float, EndPrice: float,
166-
EscalationStartYear: int, EscalationRate: float, PTCAddition: list) -> list:
166+
EscalationStartYear: int, EscalationRate: float, PTCAddition: list,
167+
construction_years: int = 1) -> list:
167168
"""
168169
BuildPricingModel builds the price model array for the project lifetime. It is used to calculate the revenue
169170
stream for the project.
@@ -179,14 +180,17 @@ def BuildPricingModel(plantlifetime: int, StartPrice: float, EndPrice: float,
179180
:type EscalationRate: float
180181
:param PTCAddition: The PTC addition array for the project in $/kWh
181182
:type PTCAddition: list
183+
:param construction_years: Number of project construction years FIXME WIP to pass from Calculate
184+
:type construction_years: int
182185
:return: Price: The price model array for the project in $/kWh
183186
:rtype: list
184187
"""
185188
Price = [0.0] * plantlifetime
186189
for i in range(0, plantlifetime, 1):
187190
Price[i] = StartPrice
188-
if i >= EscalationStartYear:
189-
Price[i] = Price[i] + ((i - EscalationStartYear) * EscalationRate)
191+
project_year = i+1
192+
if project_year >= EscalationStartYear:
193+
Price[i] = Price[i] + ((project_year - EscalationStartYear) * EscalationRate)
190194
if Price[i] > EndPrice:
191195
Price[i] = EndPrice
192196
Price[i] = Price[i] + PTCAddition[i]

0 commit comments

Comments
 (0)