Skip to content

Commit ae69955

Browse files
committed
update test_concatenate_damage_output
1 parent f0e6ede commit ae69955

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/test_input_damages.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,11 @@ def test_concatenate_damage_output(tmp_path):
112112
{
113113
"delta_rebased": (
114114
["ssp", "rcp", "model", "gcm", "batch", "year", "region"],
115-
np.full((2, 2, 2, 2, 2, 2, 2), 1),
115+
np.full((2, 2, 2, 2, 15, 2, 2), 1),
116116
),
117117
"histclim_rebased": (
118118
["ssp", "rcp", "model", "gcm", "batch", "year", "region"],
119-
np.full((2, 2, 2, 2, 2, 2, 2), 2),
119+
np.full((2, 2, 2, 2, 15, 2, 2), 2),
120120
),
121121
},
122122
coords={
@@ -135,7 +135,9 @@ def test_concatenate_damage_output(tmp_path):
135135
basename="test_insuffix",
136136
save_path=os.path.join(d, "concatenate.zarr"),
137137
)
138-
ds_out_actual = xr.open_zarr(os.path.join(d, "concatenate.zarr"))
138+
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+
)
139141

140142
xr.testing.assert_equal(ds_out_expected, ds_out_actual)
141143

0 commit comments

Comments
 (0)