Skip to content

Commit c2a572f

Browse files
committed
Adapt test values due to removement of method for temperature calculation
1 parent eaa98f9 commit c2a572f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tests/test_modelchain.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ def test_rho_hub(self):
4545
assert_allclose(test_mc.rho_hub(weather_arr, data_height), rho_exp)
4646
assert isinstance(test_mc.rho_hub(weather_arr, data_height),
4747
np.ndarray)
48-
rho_exp = pd.Series(data=[1.30309, 1.42707])
48+
rho_exp = pd.Series(data=[1.30595575725, 1.30923554056])
4949
assert_series_equal(test_mc_2.rho_hub(weather, data_height), rho_exp)
5050
assert_series_equal(test_mc_2.rho_hub(weather_df, data_height),
5151
rho_exp)
52-
rho_exp = np.array([1.30309439, 1.42706674])
52+
rho_exp = np.array([1.30595576, 1.30923554])
5353
assert_allclose(test_mc_2.rho_hub(weather_arr, data_height), rho_exp)
5454
assert isinstance(test_mc_2.rho_hub(weather_arr, data_height),
5555
np.ndarray)
@@ -64,11 +64,11 @@ def test_rho_hub(self):
6464
assert_allclose(test_mc.rho_hub(weather_arr, data_height), rho_exp)
6565
assert isinstance(test_mc.rho_hub(weather_arr, data_height),
6666
np.ndarray)
67-
rho_exp = pd.Series(data=[1.30309, 1.19618])
67+
rho_exp = pd.Series(data=[1.30595575725, 1.29944375221])
6868
assert_series_equal(test_mc_2.rho_hub(weather, data_height), rho_exp)
6969
assert_series_equal(test_mc_2.rho_hub(weather_df, data_height),
7070
rho_exp)
71-
rho_exp = np.array([1.30309439, 1.19618159])
71+
rho_exp = np.array([1.30595575, 1.29944375])
7272
assert_allclose(test_mc_2.rho_hub(weather_arr, data_height), rho_exp)
7373
assert isinstance(test_mc_2.rho_hub(weather_arr, data_height),
7474
np.ndarray)
@@ -252,15 +252,15 @@ def test_run_model(self):
252252
assert_series_equal(test_mc.power_output, power_output_exp)
253253

254254
# Test with density corrected power curve
255-
power_output_exp = pd.Series(data=[1430312.76771, 3746075.21279],
255+
power_output_exp = pd.Series(data=[1433937.37959, 3285183.55084],
256256
name='feedin_wind_turbine')
257257
test_mc = mc.ModelChain(wt.WindTurbine(**test_turbine),
258258
**test_modelchain)
259259
test_mc.run_model(weather, data_height)
260260
assert_series_equal(test_mc.power_output, power_output_exp)
261261

262262
# Test with power coefficient curve
263-
power_output_exp = pd.Series(data=[557835.45403, 1363746.94496],
263+
power_output_exp = pd.Series(data=[559060.36156, 1251143.98621],
264264
name='feedin_wind_turbine')
265265
test_turbine['fetch_curve'] = 'cp'
266266
test_modelchain['power_output_model'] = 'cp_values'
@@ -271,7 +271,7 @@ def test_run_model(self):
271271
assert_series_equal(test_mc.power_output, power_output_exp)
272272

273273
# Ideal gas equation and density corrected power coefficient curve
274-
power_output_exp = pd.Series(data=[567683.92454, 1485556.96435],
274+
power_output_exp = pd.Series(data=[569117.952419, 1302746.06501],
275275
name='feedin_wind_turbine')
276276
test_modelchain['rho_model'] = 'ideal_gas'
277277
test_modelchain['density_corr'] = True
@@ -286,7 +286,7 @@ def test_run_model(self):
286286

287287
# Test weather dictionary with numpy.arrays
288288
test_mc.run_model(weather_arr, data_height)
289-
power_output_exp = np.array([567683.924536, 1485556.964347])
289+
power_output_exp = np.array([569117.952419, 1302746.065006])
290290
assert_allclose(test_mc.power_output, power_output_exp)
291291
assert isinstance(test_mc.power_output, np.ndarray)
292292

0 commit comments

Comments
 (0)