Skip to content

Commit fc7935c

Browse files
committed
Fix test due to using closer temp_air in rho_hub()
1 parent e8911c9 commit fc7935c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_modelchain.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,10 @@ def test_rho_hub(self):
102102
'pressure': 0}
103103

104104
# temp_air_2 is closer to hub height than temp_air # TODO: Add test for temp_air is closer to hub height than temp_air_2
105-
rho_exp = pd.Series(data=[1.30617, 1.29966])
105+
rho_exp = pd.Series(data=[1.30591, 1.30919])
106106
assert_series_equal(test_mc.rho_hub(weather, data_height), rho_exp)
107107
assert_series_equal(test_mc.rho_hub(weather_df, data_height), rho_exp)
108-
rho_exp = np.array([1.30616958, 1.29965556])
108+
rho_exp = np.array([1.30591464, 1.30919432])
109109
assert_allclose(test_mc.rho_hub(weather_arr, data_height), rho_exp)
110110
rho_exp = pd.Series(data=[1.30309, 1.42707])
111111
assert_series_equal(test_mc_2.rho_hub(weather, data_height), rho_exp)

0 commit comments

Comments
 (0)