Skip to content

Commit

Permalink
Merge pull request #21 from ocefpaf/add_depreaction_warning
Browse files Browse the repository at this point in the history
add deprecation warning
  • Loading branch information
ocefpaf authored May 30, 2024
2 parents 5571c3d + efa88d3 commit e73bebc
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 e73bebc

Please sign in to comment.