Skip to content

Commit 68ee283

Browse files
committed
rename var
1 parent 427a954 commit 68ee283

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/engine/test_stats.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,18 +63,18 @@ def add_variable_to_grib(filename, dict_data):
6363

6464
@pytest.fixture
6565
def setup_grib_file(tmp_path):
66-
array_t = np.ones(
66+
array_v = np.ones(
6767
(
6868
TIME_DIM_GRIB_SIZE,
6969
STEP_DIM_SIZE,
7070
HEIGHT_DIM_GRIB_SIZE,
7171
HORIZONTAL_DIM_GRIB_SIZE,
7272
)
7373
)
74-
array_t[:, :, :, 0] = 0
75-
array_t[:, :, :, -1] = 2
74+
array_v[:, :, :, 0] = 0
75+
array_v[:, :, :, -1] = 2
7676

77-
array_pres = (
77+
array_t = (
7878
np.ones(
7979
(
8080
TIME_DIM_GRIB_SIZE,
@@ -85,10 +85,10 @@ def setup_grib_file(tmp_path):
8585
)
8686
* 3
8787
)
88-
array_pres[:, :, :, 0] = 2
89-
array_pres[:, :, :, -1] = 4
88+
array_t[:, :, :, 0] = 2
89+
array_t[:, :, :, -1] = 4
9090

91-
dict_data = {"t": array_pres, "v": array_t}
91+
dict_data = {"t": array_t, "v": array_v}
9292

9393
# This would be where your grib file is created
9494
add_variable_to_grib(tmp_path / GRIB_FILENAME, dict_data)

0 commit comments

Comments
 (0)