From 9d91c4b6fe1de35902327ec8c2f6299cebd9a739 Mon Sep 17 00:00:00 2001 From: Paige Martin Date: Fri, 13 Jan 2023 11:00:59 -0700 Subject: [PATCH 1/3] Add sentence to open_dataset docstring --- xarray/backends/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xarray/backends/api.py b/xarray/backends/api.py index 1f1ff0711aa..a4105af5968 100644 --- a/xarray/backends/api.py +++ b/xarray/backends/api.py @@ -414,7 +414,7 @@ def open_dataset( arrays. ``chunks=-1`` loads the dataset with dask using a single chunk for all arrays. ``chunks={}`` loads the dataset with dask using engine preferred chunks if exposed by the backend, otherwise with - a single chunk for all arrays. + a single chunk for all arrays. In order to reproduce the default behavior of ``xr.open_zarr(...)`` use ``xr.open_dataset(..., engine='zarr', chunks={})``. ``chunks='auto'`` will use dask ``auto`` chunking taking into account the engine preferred chunks. See dask chunking for more details. cache : bool, optional From 65d738288485eab690a2a45db1d72eae44c036a3 Mon Sep 17 00:00:00 2001 From: Deepak Cherian Date: Fri, 13 Jan 2023 13:29:11 -0700 Subject: [PATCH 2/3] Update xarray/backends/api.py --- xarray/backends/api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xarray/backends/api.py b/xarray/backends/api.py index a4105af5968..b730727439c 100644 --- a/xarray/backends/api.py +++ b/xarray/backends/api.py @@ -414,7 +414,8 @@ def open_dataset( arrays. ``chunks=-1`` loads the dataset with dask using a single chunk for all arrays. ``chunks={}`` loads the dataset with dask using engine preferred chunks if exposed by the backend, otherwise with - a single chunk for all arrays. In order to reproduce the default behavior of ``xr.open_zarr(...)`` use ``xr.open_dataset(..., engine='zarr', chunks={})``. + a single chunk for all arrays. In order to reproduce the default behavior + of ``xr.open_zarr(...)`` use ``xr.open_dataset(..., engine='zarr', chunks={})``. ``chunks='auto'`` will use dask ``auto`` chunking taking into account the engine preferred chunks. See dask chunking for more details. cache : bool, optional From 93cd752fe58b8cd7047b15bb217e2ebbcb7a6d38 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 13 Jan 2023 20:30:09 +0000 Subject: [PATCH 3/3] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- xarray/backends/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xarray/backends/api.py b/xarray/backends/api.py index b730727439c..2c13117b483 100644 --- a/xarray/backends/api.py +++ b/xarray/backends/api.py @@ -414,7 +414,7 @@ def open_dataset( arrays. ``chunks=-1`` loads the dataset with dask using a single chunk for all arrays. ``chunks={}`` loads the dataset with dask using engine preferred chunks if exposed by the backend, otherwise with - a single chunk for all arrays. In order to reproduce the default behavior + a single chunk for all arrays. In order to reproduce the default behavior of ``xr.open_zarr(...)`` use ``xr.open_dataset(..., engine='zarr', chunks={})``. ``chunks='auto'`` will use dask ``auto`` chunking taking into account the engine preferred chunks. See dask chunking for more details.