@@ -163,7 +163,8 @@ def BuildPTCModel(plantlifetime: int, duration: int, ptc_price: float,
163163
164164
165165def 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