From 0a906ff89c9b429959afcf1234879ea53ffb86f4 Mon Sep 17 00:00:00 2001 From: David Stansby Date: Tue, 17 Oct 2023 19:53:46 +0100 Subject: [PATCH] Remove deprecated sunpy.io.jp2 --- docs/conf.py | 1 - sunpy/io/jp2.py | 9 --------- sunpy/io/tests/test_jp2.py | 5 ----- 3 files changed, 15 deletions(-) delete mode 100644 sunpy/io/jp2.py diff --git a/docs/conf.py b/docs/conf.py index 2aab2f2f22a..f7eb5b7a548 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -64,7 +64,6 @@ warnings.filterwarnings("error", category=MatplotlibDeprecationWarning) warnings.filterwarnings("error", category=AstropyDeprecationWarning) warnings.filterwarnings("ignore", message="The `sunpy.io.cdf` module is deprecated",category=SunpyDeprecationWarning) -warnings.filterwarnings("ignore", message="The `sunpy.io.jp2` module is deprecated",category=SunpyDeprecationWarning) warnings.filterwarnings("ignore", message="The `sunpy.io.file_tools` module is deprecated",category=SunpyDeprecationWarning) # -- SunPy Sample Data and Config ---------------------------------------------- diff --git a/sunpy/io/jp2.py b/sunpy/io/jp2.py deleted file mode 100644 index 67647430f42..00000000000 --- a/sunpy/io/jp2.py +++ /dev/null @@ -1,9 +0,0 @@ -from sunpy.util.exceptions import warn_deprecated -from . import _jp2 -from ._jp2 import * # NOQA - -__doc__ = _jp2.__doc__ -__all__ = _jp2.__all__ - -warn_deprecated("The `sunpy.io.jp2` module is deprecated, as it was designed " - "for internal use.") diff --git a/sunpy/io/tests/test_jp2.py b/sunpy/io/tests/test_jp2.py index 455554feaca..6a432aa121e 100644 --- a/sunpy/io/tests/test_jp2.py +++ b/sunpy/io/tests/test_jp2.py @@ -45,8 +45,3 @@ def test_simple_write(tmpdir): # Sanity check that reading back the jp2 returns coherent data jp2_readback = _jp2.read(outfile) assert header['DATE'] == jp2_readback[0].header['DATE'] - - -def test_old_import(): - lib = importlib.import_module("sunpy.io.jp2") - assert lib.read is _jp2.read