Skip to content

Commit 1f48299

Browse files
committed
Fix tests - tests fail on windows as dtype on one side is np.int32 and on the other np.int64
1 parent 07649a9 commit 1f48299

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

tests/test_modelchain.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,11 @@ def test_temperature_hub(self):
102102
np.array([100, 10]),
103103
]
104104
temp_exp = pd.Series(data=[267, 268], name=100)
105-
assert_series_equal(test_mc.temperature_hub(weather_df), temp_exp)
105+
assert_series_equal(
106+
test_mc.temperature_hub(weather_df),
107+
temp_exp,
108+
check_dtype=False,
109+
)
106110

107111
def test_density_hub(self):
108112
# Test modelchain with density_model='barometric'

tests/test_power_curves.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ def test_smooth_power_curve(self):
5353
)
5454
smoothed_curve_exp.index = np.arange(5, 10, 1)
5555
assert_frame_equal(
56-
smooth_power_curve(**parameters)[5:10], smoothed_curve_exp
56+
smooth_power_curve(**parameters)[5:10],
57+
smoothed_curve_exp,
58+
check_dtype=False,
5759
)
5860

5961
# Test Staffel_Pfenninger method
@@ -73,7 +75,9 @@ def test_smooth_power_curve(self):
7375
)
7476
smoothed_curve_exp.index = np.arange(5, 10, 1)
7577
assert_frame_equal(
76-
smooth_power_curve(**parameters)[5:10], smoothed_curve_exp
78+
smooth_power_curve(**parameters)[5:10],
79+
smoothed_curve_exp,
80+
check_dtype=False,
7781
)
7882

7983
# Raise ValueError - misspelling

0 commit comments

Comments
 (0)