@@ -178,9 +178,9 @@ def test_run_model(self):
178178 test_turbine = {'hub_height' : 100 ,
179179 'rotor_diameter' : 80 ,
180180 'turbine_name' : 'ENERCON E 126 7500' ,
181- 'fetch_curve' : 'p ' }
181+ 'fetch_curve' : 'power_curve ' }
182182
183- # Test with default parameters of modelchain (p curve)
183+ # Test with default parameters of modelchain (power curve)
184184 power_output_exp = pd .Series (data = [1731887.39768 , 3820152.27489 ],
185185 name = 'feedin_wind_turbine' )
186186 test_mc = mc .ModelChain (wt .WindTurbine (** test_turbine ))
@@ -201,7 +201,7 @@ def test_run_model(self):
201201 # Test with power coefficient curve and hellman
202202 power_output_exp = pd .Series (data = [559060.36156 , 1251143.98621 ],
203203 name = 'feedin_wind_turbine' )
204- test_turbine ['fetch_curve' ] = 'cp '
204+ test_turbine ['fetch_curve' ] = 'power_coefficient_curve '
205205 test_modelchain = {'wind_speed_model' : 'hellman' ,
206206 'power_output_model' : 'power_coefficient_curve' ,
207207 'density_correction' : False }
@@ -229,17 +229,17 @@ def test_run_model(self):
229229 ** test_modelchain )
230230 test_mc .run_model (weather_df )
231231 with pytest .raises (ValueError ):
232- test_modelchain ['wind_speed_model ' ] = 'wrong_spelling'
232+ test_modelchain ['density_model ' ] = 'wrong_spelling'
233233 test_mc = mc .ModelChain (wt .WindTurbine (** test_turbine ),
234234 ** test_modelchain )
235235 test_mc .run_model (weather_df )
236236 with pytest .raises (ValueError ):
237- test_modelchain ['density_model ' ] = 'wrong_spelling'
237+ test_modelchain ['temperature_model ' ] = 'wrong_spelling'
238238 test_mc = mc .ModelChain (wt .WindTurbine (** test_turbine ),
239239 ** test_modelchain )
240240 test_mc .run_model (weather_df )
241241 with pytest .raises (ValueError ):
242- test_modelchain ['temperature_model ' ] = 'wrong_spelling'
242+ test_modelchain ['wind_speed_model ' ] = 'wrong_spelling'
243243 test_mc = mc .ModelChain (wt .WindTurbine (** test_turbine ),
244244 ** test_modelchain )
245245 test_mc .run_model (weather_df )
@@ -263,7 +263,7 @@ def test_run_model(self):
263263 test_turbine = {'hub_height' : 100 ,
264264 'rotor_diameter' : 80 ,
265265 'turbine_name' : 'ENERCON E 126 7500' ,
266- 'fetch_curve' : 'p ' }
266+ 'fetch_curve' : 'power_curve ' }
267267 test_modelchain = {'power_output_model' : 'power_coefficient_curve' ,
268268 'density_correction' : True }
269269 test_mc = mc .ModelChain (wt .WindTurbine (** test_turbine ),
@@ -273,7 +273,7 @@ def test_run_model(self):
273273 test_turbine = {'hub_height' : 100 ,
274274 'rotor_diameter' : 80 ,
275275 'turbine_name' : 'ENERCON E 126 7500' ,
276- 'fetch_curve' : 'cp ' }
276+ 'fetch_curve' : 'power_coefficient_curve ' }
277277 test_modelchain = {'power_output_model' : 'power_curve' ,
278278 'density_corr' : True }
279279 test_mc = mc .ModelChain (wt .WindTurbine (** test_turbine ),
0 commit comments