Skip to content

Commit 8c4aaed

Browse files
Add Parcels v4 warning at import (#2209)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent abcfb91 commit 8c4aaed

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

parcels/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
__version__ = version
44

5+
import warnings as _warnings
6+
57
from parcels.application_kernels import *
68
from parcels.field import *
79
from parcels.fieldset import *
@@ -11,3 +13,9 @@
1113
from parcels.particlefile import *
1214
from parcels.particleset import *
1315
from parcels.tools import *
16+
17+
_warnings.warn(
18+
"This is an alpha version of Parcels v4. The API is not stable and may change without deprecation warnings.",
19+
UserWarning,
20+
stacklevel=2,
21+
)

0 commit comments

Comments
 (0)