From d5f6b964a1e2ce99a9e0d1d16caee6fef8d35a19 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Tue, 26 May 2020 18:37:01 +0100 Subject: [PATCH 1/3] fixing typo in corr, cov docstrings --- xarray/core/computation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xarray/core/computation.py b/xarray/core/computation.py index 6ac4f74c3a6..5e172ea29ab 100644 --- a/xarray/core/computation.py +++ b/xarray/core/computation.py @@ -1108,7 +1108,7 @@ def cov(da_a, da_b, dim=None, ddof=1): Coordinates: * space (space) >> da_a = DataArray(np.array([[0.2, 0.4, 0.6], [15, 10, 5], [3.2, 0.6, 1.8]]), + >>> da_b = DataArray(np.array([[0.2, 0.4, 0.6], [15, 10, 5], [3.2, 0.6, 1.8]]), ... dims=("space", "time"), ... coords=[('space', ['IA', 'IL', 'IN']), ... ('time', pd.date_range("2000-01-01", freq="1D", periods=3))]) @@ -1177,7 +1177,7 @@ def corr(da_a, da_b, dim=None): Coordinates: * space (space) >> da_a = DataArray(np.array([[0.2, 0.4, 0.6], [15, 10, 5], [3.2, 0.6, 1.8]]), + >>> da_b = DataArray(np.array([[0.2, 0.4, 0.6], [15, 10, 5], [3.2, 0.6, 1.8]]), ... dims=("space", "time"), ... coords=[('space', ['IA', 'IL', 'IN']), ... ('time', pd.date_range("2000-01-01", freq="1D", periods=3))]) From 3f8136072a17b2595a6fe631cca1f6861947e514 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Fri, 15 May 2020 16:40:14 +0100 Subject: [PATCH 2/3] reverted accidental changes in dataset.chunk() --- xarray/tests/test_dask.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xarray/tests/test_dask.py b/xarray/tests/test_dask.py index 6f714fe1825..d0b1fbd3676 100644 --- a/xarray/tests/test_dask.py +++ b/xarray/tests/test_dask.py @@ -994,7 +994,7 @@ def make_ds(): map_ds.coords["cx"].attrs["test2"] = "test2" map_ds.attrs["test"] = "test" map_ds.coords["xx"] = map_ds["a"] * map_ds.y - + return map_ds From c271fe77760dfe8a97df189b40e559fdb178e243 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Tue, 26 May 2020 18:44:47 +0100 Subject: [PATCH 3/3] pep8 --- xarray/tests/test_dask.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xarray/tests/test_dask.py b/xarray/tests/test_dask.py index d0b1fbd3676..6f714fe1825 100644 --- a/xarray/tests/test_dask.py +++ b/xarray/tests/test_dask.py @@ -994,7 +994,7 @@ def make_ds(): map_ds.coords["cx"].attrs["test2"] = "test2" map_ds.attrs["test"] = "test" map_ds.coords["xx"] = map_ds["a"] * map_ds.y - + return map_ds