From 591f180813a4cf3848a5d93b6b3b6ea1bf525b97 Mon Sep 17 00:00:00 2001 From: Deepak Cherian Date: Thu, 9 Jan 2025 09:27:29 -0700 Subject: [PATCH 1/6] dev whats-new --- doc/whats-new.rst | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 5c960c13287..a19345b4ef6 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -14,6 +14,33 @@ What's New np.random.seed(123456) +.. _whats-new.2025.01.2: + +v2025.01.2 (unreleased) +----------------------- + +New Features +~~~~~~~~~~~~ + + +Breaking changes +~~~~~~~~~~~~~~~~ + + +Deprecations +~~~~~~~~~~~~ + + +Bug fixes +~~~~~~~~~ + + +Documentation +~~~~~~~~~~~~~ + + +Internal Changes +~~~~~~~~~~~~~~~~ .. _whats-new.2025.01.1: From 995cfab3aaf8e6635c6938f90ed5bc01e0ce68d0 Mon Sep 17 00:00:00 2001 From: Deepak Cherian Date: Thu, 9 Jan 2025 11:08:35 -0700 Subject: [PATCH 2/6] silence warning --- doc/internals/zarr-encoding-spec.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/internals/zarr-encoding-spec.rst b/doc/internals/zarr-encoding-spec.rst index 7f468b8b0db..958dad166e1 100644 --- a/doc/internals/zarr-encoding-spec.rst +++ b/doc/internals/zarr-encoding-spec.rst @@ -53,6 +53,7 @@ As a concrete example, here we write a tutorial dataset to Zarr and then re-open it directly with Zarr: .. ipython:: python + :okwarning: import os import xarray as xr From 099a3db10c4159e690992ff8a345232e7c18f2b1 Mon Sep 17 00:00:00 2001 From: Deepak Cherian Date: Thu, 9 Jan 2025 12:20:30 -0700 Subject: [PATCH 3/6] [skip-ci] add rich --- ci/requirements/doc.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/ci/requirements/doc.yml b/ci/requirements/doc.yml index fc1234b787a..2d02b2339d2 100644 --- a/ci/requirements/doc.yml +++ b/ci/requirements/doc.yml @@ -31,6 +31,7 @@ dependencies: - pre-commit - pyarrow - pyproj + - rich # for Zarr tree() - scipy!=1.10.0 - seaborn - setuptools From 36cbc91639da78da978d5ebed81226b5e6a0a3bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20M=C3=BChlbauer?= Date: Fri, 10 Jan 2025 07:46:21 +0100 Subject: [PATCH 4/6] [skip-ci] add :okwarning: for ipython blocks which use to_zarr in user-guide/io.rst --- doc/user-guide/io.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/user-guide/io.rst b/doc/user-guide/io.rst index 8561d37ed40..4593a85aabc 100644 --- a/doc/user-guide/io.rst +++ b/doc/user-guide/io.rst @@ -661,6 +661,7 @@ To write to a local directory, we pass a path to a directory: ! rm -rf path/to/directory.zarr .. ipython:: python + :okwarning: ds = xr.Dataset( {"foo": (("x", "y"), np.random.rand(4, 5))}, @@ -731,6 +732,7 @@ For writing, you must explicitly set up a ``MutableMapping`` instance and pass this, as follows: .. code:: python + :okwarning: import gcsfs @@ -771,6 +773,7 @@ to Zarr: ! rm -rf path/to/directory.zarr .. ipython:: python + :okwarning: import dask.array @@ -823,6 +826,7 @@ For example: ! rm -rf foo.zarr .. ipython:: python + :okwarning: import zarr from numcodecs.blosc import Blosc @@ -873,6 +877,7 @@ order, e.g., for time-stepping a simulation: ! rm -rf path/to/directory.zarr .. ipython:: python + :okwarning: ds1 = xr.Dataset( {"foo": (("x", "y", "t"), np.random.rand(4, 5, 2))}, @@ -940,6 +945,7 @@ space on disk or in memory, yet when writing to disk the default zarr behavior i split them into chunks: .. ipython:: python + :okwarning: ds.to_zarr("path/to/directory.zarr", mode="w") ! ls -R path/to/directory.zarr @@ -950,6 +956,7 @@ storage provider. To disable this chunking, we can specify a chunk size equal to length of each dimension by using the shorthand chunk size ``-1``: .. ipython:: python + :okwarning: ds.to_zarr( "path/to/directory.zarr", From 9d642de3e73f173c0e68571e6d25ae63803d5e13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20M=C3=BChlbauer?= Date: Fri, 10 Jan 2025 07:53:19 +0100 Subject: [PATCH 5/6] [skip-ci] add :okwarning: for ipython blocks which use open_zarr in user-guide/io.rst --- doc/user-guide/io.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/user-guide/io.rst b/doc/user-guide/io.rst index 4593a85aabc..aa12b439210 100644 --- a/doc/user-guide/io.rst +++ b/doc/user-guide/io.rst @@ -698,6 +698,7 @@ To read back a zarr dataset that has been created this way, we use the :py:func:`open_zarr` method: .. ipython:: python + :okwarning: ds_zarr = xr.open_zarr("path/to/directory.zarr") ds_zarr From 87b2120f01b4550ced03936a6c8a776dd0c3bf49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20M=C3=BChlbauer?= Date: Fri, 10 Jan 2025 08:03:55 +0100 Subject: [PATCH 6/6] [skip-ci] remove :okwarning: for python code block --- doc/user-guide/io.rst | 1 - 1 file changed, 1 deletion(-) diff --git a/doc/user-guide/io.rst b/doc/user-guide/io.rst index aa12b439210..60ab1720ecf 100644 --- a/doc/user-guide/io.rst +++ b/doc/user-guide/io.rst @@ -733,7 +733,6 @@ For writing, you must explicitly set up a ``MutableMapping`` instance and pass this, as follows: .. code:: python - :okwarning: import gcsfs pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy