Skip to content

Commit

Permalink
_
Browse files Browse the repository at this point in the history
  • Loading branch information
max-sixty committed Apr 19, 2021
1 parent b9d0fc5 commit 02cf92a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xarray/tests/test_dataarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -7343,4 +7343,6 @@ def test_clip(da):

result = da.clip(min=da.mean("x"), max=da.mean("a"))
assert result.dims == da.dims
assert_array_equal(result.data, np.clip(da.data, min=da.mean("x").data, max=da.mean("a").data))
assert_array_equal(
result.data, np.clip(da.data, min=da.mean("x").data, max=da.mean("a").data)
)

0 comments on commit 02cf92a

Please sign in to comment.