We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 427a954 commit 68ee283Copy full SHA for 68ee283
tests/engine/test_stats.py
@@ -63,18 +63,18 @@ def add_variable_to_grib(filename, dict_data):
63
64
@pytest.fixture
65
def setup_grib_file(tmp_path):
66
- array_t = np.ones(
+ array_v = np.ones(
67
(
68
TIME_DIM_GRIB_SIZE,
69
STEP_DIM_SIZE,
70
HEIGHT_DIM_GRIB_SIZE,
71
HORIZONTAL_DIM_GRIB_SIZE,
72
)
73
74
- array_t[:, :, :, 0] = 0
75
- array_t[:, :, :, -1] = 2
+ array_v[:, :, :, 0] = 0
+ array_v[:, :, :, -1] = 2
76
77
- array_pres = (
+ array_t = (
78
np.ones(
79
80
@@ -85,10 +85,10 @@ def setup_grib_file(tmp_path):
85
86
* 3
87
88
- array_pres[:, :, :, 0] = 2
89
- array_pres[:, :, :, -1] = 4
+ array_t[:, :, :, 0] = 2
+ array_t[:, :, :, -1] = 4
90
91
- dict_data = {"t": array_pres, "v": array_t}
+ dict_data = {"t": array_t, "v": array_v}
92
93
# This would be where your grib file is created
94
add_variable_to_grib(tmp_path / GRIB_FILENAME, dict_data)
0 commit comments