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

Remove deprecated code from wcs #15504

Merged
merged 2 commits into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 0 additions & 9 deletions astropy/wcs/wcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,6 @@ def __init__(
niter=None,
divergent=None,
slow_conv=None,
**kwargs,
):
super().__init__(*args)

Expand All @@ -254,14 +253,6 @@ def __init__(
self.divergent = divergent
self.slow_conv = slow_conv

if kwargs:
warnings.warn(
f"Function received unexpected arguments ({list(kwargs)}) these "
"are ignored but will raise an Exception in the "
"future.",
AstropyDeprecationWarning,
eerovaher marked this conversation as resolved.
Show resolved Hide resolved
)


class FITSFixedWarning(AstropyWarning):
"""
Expand Down
3 changes: 0 additions & 3 deletions astropy/wcs/wcsapi/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
from astropy.wcs import WCS
from astropy.wcs.wcsapi import BaseLowLevelWCS

# NOTE: This module is deprecated and is emitting warning.
collect_ignore = ["sliced_low_level_wcs.py"]


@pytest.fixture
def spectral_1d_fitswcs():
Expand Down
12 changes: 0 additions & 12 deletions astropy/wcs/wcsapi/sliced_low_level_wcs.py

This file was deleted.

1 change: 1 addition & 0 deletions docs/changes/wcs/15504.api.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
``NoConvergence`` no longer accepts arbitrary keyword arguments.