Skip to content

Commit

Permalink
add deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ocefpaf committed May 30, 2024
1 parent f479812 commit efa88d3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions seawater/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
"""Seawater: EOS-80 equation of state."""

import warnings

try:
from ._version import __version__
except ImportError:
Expand Down Expand Up @@ -62,3 +64,8 @@
"swvel",
"temp",
]

warnings.warn(
"The seawater library is deprecated! Please use gsw instead.",
stacklevel=2,
)

0 comments on commit efa88d3

Please sign in to comment.