Skip to content

Commit

Permalink
fix - add dimension to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Gijom committed Aug 31, 2021
1 parent 39cffd1 commit 3dde39b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xarray/tests/test_computation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1566,9 +1566,9 @@ def test_covcorr_consistency(da_a, da_b, dim) -> None:
def test_corr_lazycorr_consistency(da_a, da_b, dim) -> None:
da_al = da_a.chunk()
da_bl = da_b.chunk()
c_abl = xr.corr(da_al, da_bl)
c_ab = xr.corr(da_a, da_b)
c_ab_mixed = xr.corr(da_a, da_bl)
c_abl = xr.corr(da_al, da_bl, dim=dim)
c_ab = xr.corr(da_a, da_b, dim=dim)
c_ab_mixed = xr.corr(da_a, da_bl, dim=dim)
assert_allclose(c_ab, c_abl)
assert_allclose(c_ab, c_ab_mixed)

Expand Down

0 comments on commit 3dde39b

Please sign in to comment.