Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add v1.x deprecation warning #603

Merged
merged 9 commits into from
Sep 16, 2024
12 changes: 12 additions & 0 deletions icepyx/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
from warnings import warn

deprecation_msg = """icepyx v1.x is deprecated; the back-end systems on which is relies
are being shut down. Please upgrade to icepyx v2.x which uses the new NASA Harmony
back-end.
JessicaS11 marked this conversation as resolved.
Show resolved Hide resolved
"""
# IMPORTANT: This is being done before the other icepyx imports because the imported
# code changes warning filters. If this is done after the imports, the warning won't
# work.
warn(deprecation_msg, DeprecationWarning, stacklevel=2)
JessicaS11 marked this conversation as resolved.
Show resolved Hide resolved


from _icepyx_version import version as __version__

from icepyx.core.query import GenQuery, Query
Expand Down