Skip to content

Commit 9ce7f73

Browse files
add comment to test
1 parent e123b7b commit 9ce7f73

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

climada/hazard/test/test_forecast.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,4 +122,5 @@ def test_write_read_hazard_forecast(haz_fc, tmp_path):
122122
if key in ["intensity", "fraction"]:
123123
(haz_fc.__dict__[key] != haz_fc_read.__dict__[key]).nnz == 0
124124
else:
125+
# npt.assert_array_equal also works for comparing int, float or list
125126
npt.assert_array_equal(haz_fc.__dict__[key], haz_fc_read.__dict__[key])

0 commit comments

Comments
 (0)