Skip to content

Commit 1decc87

Browse files
committed
Change test parameters of modelchain
1 parent f81dd7e commit 1decc87

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_modelchain.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ def setup_class(self):
1515
'd_rotor': 80,
1616
'turbine_name': 'ENERCON E 126 7500',
1717
'fetch_curve': 'p'}
18-
self.test_modelchain = {'wind_model': 'hellman',
18+
self.test_modelchain = {'wind_model': 'logarithmic',
1919
'rho_model': 'barometric',
20-
'temperature_model': 'interpolation',
20+
'temperature_model': 'gradient',
2121
'power_output_model': 'p_values',
2222
'density_corr': False}
2323
self.test_mc = mc.ModelChain(wt.WindTurbine(**self.test_turbine),
@@ -39,7 +39,7 @@ def test_v_wind_hub(self):
3939

4040
# Test weather dictionary with pandas.Series
4141
# v_wind is closer to hub height than v_wind_2
42-
v_wind_exp = pd.Series(data=[7.12462, 9.26201])
42+
v_wind_exp = pd.Series(data=[7.74137, 10.06377])
4343
assert_series_equal(self.test_mc.v_wind_hub(weather, data_height),
4444
v_wind_exp)
4545
# v_wind is given at hub height
@@ -78,7 +78,7 @@ def test_rho_hub(self):
7878
'temp_air_2': 10,
7979
'pressure': 0}
8080
# Test with above conditions
81-
rho_exp = pd.Series(data=[1.30305, 1.42702])
81+
rho_exp = pd.Series(data=[1.30617, 1.29966])
8282
assert_series_equal(self.test_mc.rho_hub(weather,
8383
data_height), rho_exp)
8484
# temp_air at hub height

0 commit comments

Comments
 (0)