Skip to content

Commit

Permalink
Change order of data vars in test to reflect reality
Browse files Browse the repository at this point in the history
This is the order we get when interacting with storage.
  • Loading branch information
dafeda committed Jun 17, 2024
1 parent e6c455c commit 054d9aa
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions tests/integration_tests/analysis/test_es_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,22 @@ def uniform_parameter():

@pytest.fixture
def obs():
observations = np.array([1.0, 1.0, 1.0])
errors = np.array([0.1, 1.0, 10.0])
return xr.Dataset(
{
"observations": (
["name", "obs_name", "report_step", "index"],
[[[[1.0, 1.0, 1.0]]]],
["name", "obs_name", "index", "report_step"],
np.reshape(observations, (1, 1, 3, 1)),
),
"std": (
["name", "obs_name", "report_step", "index"],
[[[[0.1, 1.0, 10.0]]]],
["name", "obs_name", "index", "report_step"],
np.reshape(errors, (1, 1, 3, 1)),
),
},
coords={
"name": ["RESPONSE"],
"obs_name": ["OBSERVATION"],
"name": ["RESPONSE"], # Has to correspond to actual response name
"index": [0, 1, 2],
"report_step": [0],
},
Expand Down

0 comments on commit 054d9aa

Please sign in to comment.