Skip to content

Commit 4634b30

Browse files
committed
Fix symmetry issue in ImpactForecast tests
1 parent 6cc4eb5 commit 4634b30

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

climada/engine/test/test_impact_forecast.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -284,10 +284,10 @@ def imp_fc_stats_dim_reduce(self, imp_fc_stats):
284284
imp_fc_stats.member = np.array([1, 2, 1, 2])
285285
imp_fc_stats.lead_time = np.array(
286286
[
287-
np.timedelta64(1, "h"),
288287
np.timedelta64(1, "h"),
289288
np.timedelta64(2, "h"),
290289
np.timedelta64(2, "h"),
290+
np.timedelta64(1, "h"),
291291
]
292292
)
293293
return imp_fc_stats
@@ -318,13 +318,13 @@ def reduction_results_dim(self):
318318
"quantile": {"imp_mat": [[1.5, 0.5], [0.5, 2]], "at_event": [2, 2.5]},
319319
},
320320
"member": {
321-
"min": {"imp_mat": [[0, 0], [2, 2]], "at_event": [0, 4]},
322-
"mean": {"imp_mat": [[0.5, 0.5], [2.5, 3.5]], "at_event": [1, 6]},
323-
"median": {"imp_mat": [[0.5, 0.5], [2.5, 3.5]], "at_event": [1, 6]},
324-
"max": {"imp_mat": [[1, 1], [3, 5]], "at_event": [2, 8]},
321+
"min": {"imp_mat": [[1, 0], [0, 1]], "at_event": [1, 1]},
322+
"mean": {"imp_mat": [[1.5, 2.5], [1.5, 1.5]], "at_event": [4, 3]},
323+
"median": {"imp_mat": [[1.5, 2.5], [1.5, 1.5]], "at_event": [4, 3]},
324+
"max": {"imp_mat": [[2, 5], [3, 2]], "at_event": [7, 5]},
325325
"quantile": {
326-
"imp_mat": [[0.25, 0.25], [2.25, 2.75]],
327-
"at_event": [0.5, 5],
326+
"imp_mat": [[1.25, 1.25], [0.75, 1.25]],
327+
"at_event": [2.5, 2],
328328
},
329329
},
330330
}

0 commit comments

Comments
 (0)