We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa32717 commit 533bb08Copy full SHA for 533bb08
tests/test_modelchain.py
@@ -189,3 +189,16 @@ def test_run_model(self):
189
test_mc = mc.ModelChain(wt.WindTurbine(**turbine1),
190
**modelchain1)
191
test_mc.run_model(weather, data_height)
192
+ with pytest.raises(TypeError):
193
+ turbine2 = {'hub_height': 100,
194
+ 'd_rotor': 80,
195
+ 'turbine_name': 'ENERCON E 126 7500',
196
+ 'fetch_curve': 'cp'}
197
+ modelchain2 = {'wind_model': 'hellman',
198
+ 'rho_model': 'barometric',
199
+ 'temperature_model': 'interpolation',
200
+ 'power_output_model': 'p_values',
201
+ 'density_corr': True}
202
+ test_mc = mc.ModelChain(wt.WindTurbine(**turbine2),
203
+ **modelchain2)
204
+ test_mc.run_model(weather, data_height)
0 commit comments