Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
HGWright committed Oct 12, 2023
1 parent ef28966 commit b2297ae
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def test_node_friendly_methods(method):
src.data[:] = 1 # Ensure all data in the source is one.
result = regrid_unstructured_to_unstructured(src, tgt, method=method)

expected_data = np.ones(tgt.data)
expected_data = np.ones_like(tgt.data)
expected_cube = _add_metadata(tgt)

# Lenient check for data.
Expand Down Expand Up @@ -162,7 +162,7 @@ def test_multidim_cubes():

# Lenient check for data.
expected_data = np.empty([t, n_lats * n_lons, h])
expected_data[:] = np.arange(t * h).reshape(t, h)[:, np.newaxis, np.newaxis, :]
expected_data[:] = np.arange(t * h).reshape(t, h)[:, np.newaxis, :]
assert np.allclose(expected_data, result.data)

expected_cube = Cube(expected_data)
Expand Down

0 comments on commit b2297ae

Please sign in to comment.