File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed
Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -177,8 +177,15 @@ def test_run_model(self):
177177 test_mc .run_model (weather , data_height )
178178 # Raise TypeErrors due to missing cp- or p-values
179179 with pytest .raises (TypeError ):
180- test_modelchain ['power_output_model' ] = 'p_values'
181- test_turbine ['fetch_curve' ] = 'cp'
182- test_mc = mc .ModelChain (wt .WindTurbine (** test_turbine ),
183- ** test_modelchain )
184- test_mc .run_model (weather , data_height )
180+ turbine1 = {'hub_height' : 100 ,
181+ 'd_rotor' : 80 ,
182+ 'turbine_name' : 'ENERCON E 126 7500' ,
183+ 'fetch_curve' : 'p' }
184+ modelchain1 = {'wind_model' : 'hellman' ,
185+ 'rho_model' : 'barometric' ,
186+ 'temperature_model' : 'interpolation' ,
187+ 'power_output_model' : 'cp_values' ,
188+ 'density_corr' : True }
189+ test_mc = mc .ModelChain (wt .WindTurbine (** turbine1 ),
190+ ** modelchain1 )
191+ test_mc .run_model (weather , data_height )
You can’t perform that action at this time.
0 commit comments