From 4d7b5fa9da4aa54b46f4b586fd9d643055e46618 Mon Sep 17 00:00:00 2001 From: Erik van Sebille Date: Mon, 17 Aug 2026 13:48:39 +0200 Subject: [PATCH 1/2] Removing v4 warning in init --- pyproject.toml | 1 - src/parcels/__init__.py | 8 -------- 2 files changed, 9 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 13f443b31..e1ff967bc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -69,7 +69,6 @@ filterwarnings = [ "error:.*removed in a future release of Parcels.*:DeprecationWarning", # Have Parcels DeprecationWarnings fail CI (prevents deprecated items being used in internal code) "error:::parcels.*", "error::UserWarning", - "ignore:This is an alpha version of Parcels v4.*:UserWarning", # TODO v4: Remove when warning is removed ] [tool.ruff] diff --git a/src/parcels/__init__.py b/src/parcels/__init__.py index 073610946..6a8ee14cd 100644 --- a/src/parcels/__init__.py +++ b/src/parcels/__init__.py @@ -7,8 +7,6 @@ # Local copy or not installed with setuptools. __version__ = "unknown" -import warnings as _stdlib_warnings - from parcels._core.fieldset import FieldSet from parcels._xarray import open_raw_zarr from parcels._core.particleset import ParticleSet @@ -82,9 +80,3 @@ # kernels "kernels", ] - -_stdlib_warnings.warn( - "This is an alpha version of Parcels v4. The API is not stable and may change without deprecation warnings.", - UserWarning, - stacklevel=2, -) From a25405a748a98fa8c869cd72d0ac3780e60d9b31 Mon Sep 17 00:00:00 2001 From: Erik van Sebille Date: Mon, 17 Aug 2026 13:48:53 +0200 Subject: [PATCH 2/2] Removing v4 warning banner on docs --- docs/conf.py | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index 64bf04f4f..99dcd93b2 100755 --- a/docs/conf.py +++ b/docs/conf.py @@ -204,7 +204,6 @@ "type": "fontawesome", } ], - "announcement": "WARNING: This documentation is built for v4 of Parcels, which is unreleased and in active development. Use the version switcher in the bottom right to select your version of Parcels, or see stable docs.", "header_links_before_dropdown": 8, "navbar_align": "left", }