Skip to content
This repository was archived by the owner on Sep 11, 2023. It is now read-only.

Commit 91f894d

Browse files
committed
re order dims
1 parent 8144c46 commit 91f894d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

nowcasting_dataset/data_sources/satellite/satellite_model.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ def model_validation(cls, v):
4242
v.check_data_var_dim(v.x_geostationary, ("example", "x_geostationary_index"))
4343
v.check_data_var_dim(v.y_geostationary, ("example", "y_geostationary_index"))
4444

45+
# re-order dims
46+
if v.data.dims != satellite_expected_dims_order:
47+
v.__setitem__("data", v.data.transpose(*satellite_expected_dims_order))
48+
4549
return v
4650

4751

0 commit comments

Comments
 (0)