Skip to content

Commit ee26418

Browse files
committed
Solved ToDo
1 parent 243a376 commit ee26418

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_modelchain.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,9 @@ def test_run_model(self):
304304

305305
# Test weather dictionary with numpy.arrays
306306
test_mc.run_model(weather_arr, data_height)
307-
power_output_exp = [567683.924536, 1485556.964347] # TODO: Output should be np.array
307+
power_output_exp = np.array([567683.924536, 1485556.964347])
308308
assert_allclose(test_mc.power_output, power_output_exp)
309+
assert isinstance(test_mc.power_output, np.ndarray)
309310

310311
# Raise ValueErrors due to wrong spelling of parameters
311312
with pytest.raises(ValueError):

0 commit comments

Comments
 (0)