We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0e6ede commit ae69955Copy full SHA for ae69955
tests/test_input_damages.py
@@ -112,11 +112,11 @@ def test_concatenate_damage_output(tmp_path):
112
{
113
"delta_rebased": (
114
["ssp", "rcp", "model", "gcm", "batch", "year", "region"],
115
- np.full((2, 2, 2, 2, 2, 2, 2), 1),
+ np.full((2, 2, 2, 2, 15, 2, 2), 1),
116
),
117
"histclim_rebased": (
118
119
- np.full((2, 2, 2, 2, 2, 2, 2), 2),
+ np.full((2, 2, 2, 2, 15, 2, 2), 2),
120
121
},
122
coords={
@@ -135,7 +135,9 @@ def test_concatenate_damage_output(tmp_path):
135
basename="test_insuffix",
136
save_path=os.path.join(d, "concatenate.zarr"),
137
)
138
- ds_out_actual = xr.open_zarr(os.path.join(d, "concatenate.zarr"))
+ ds_out_actual = xr.open_zarr(os.path.join(d, "concatenate.zarr")).sel(
139
+ batch=["batch" + str(i) for i in range(0, 15)]
140
+ )
141
142
xr.testing.assert_equal(ds_out_expected, ds_out_actual)
143
0 commit comments