Skip to content
forked from pydata/xarray

Commit

Permalink
minor.
Browse files Browse the repository at this point in the history
  • Loading branch information
dcherian committed Jan 21, 2020
1 parent 9291b91 commit 2ce560f
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions xarray/tests/test_dask.py
Original file line number Diff line number Diff line change
Expand Up @@ -1392,7 +1392,7 @@ def test_lazy_array_equiv_merge(compat):
xr.merge([da1, da2 / 2], compat=compat)


@pytest.mark.filterwarnings("ignore::FutureWarning")
@pytest.mark.filterwarnings("ignore::FutureWarning") # transpose_coords
@pytest.mark.parametrize("obj", [make_da(), make_ds()])
@pytest.mark.parametrize(
"transform",
Expand Down Expand Up @@ -1434,17 +1434,14 @@ def test_more_transforms_pass_lazy_array_equiv(map_da, map_ds):
assert_equal(map_ds.update({"a": map_ds.a}), map_ds)

# fails because of index error
# assert_equal(map_ds.rename_dims({"x": "xnew"}).rename_dims({"xnew": "x"}),
# map_ds)
# assert_equal(
# map_ds.rename_dims({"x": "xnew"}).rename_dims({"xnew": "x"}), map_ds
# )

assert_equal(
map_ds.rename_vars({"cxy": "cnew"}).rename_vars({"cnew": "cxy"}), map_ds
)

assert_equal(map_da._from_temp_dataset(map_da._to_temp_dataset()), map_da)
assert_equal(map_da.astype(map_da.dtype), map_da)
assert_equal(map_da.transpose("y", "x", transpose_coords=False).cxy, map_da.cxy)


# TODO: transpose_coords for dataset
# getitem with mask
# __getitem__

0 comments on commit 2ce560f

Please sign in to comment.