Skip to content

Commit

Permalink
Raise a deprecation warning if the 'order' argument is passed in
Browse files Browse the repository at this point in the history
  • Loading branch information
svank committed Aug 22, 2022
1 parent 7f20896 commit cf40c3c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions reproject/adaptive/high_level.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
# Licensed under a 3-clause BSD style license - see LICENSE.rst
import astropy.utils

from ..utils import parse_input_data, parse_output_projection
from .core import _reproject_adaptive_2d

__all__ = ['reproject_adaptive']


@astropy.utils.deprecated_renamed_argument('order', None, since=0.9)
def reproject_adaptive(input_data, output_projection, shape_out=None, hdu_in=0,
order=None,
return_footprint=True, center_jacobian=False,
roundtrip_coords=True, conserve_flux=False,
kernel='Hann', kernel_width=1.3, sample_region_width=4):
Expand Down Expand Up @@ -42,6 +45,9 @@ def reproject_adaptive(input_data, output_projection, shape_out=None, hdu_in=0,
hdu_in : int or str, optional
If ``input_data`` is a FITS file or an `~astropy.io.fits.HDUList`
instance, specifies the HDU to use.
order : str
Deprecated, and no longer has any effect. Will be removed in a future
release.
return_footprint : bool
Whether to return the footprint in addition to the output array.
center_jacobian : bool
Expand Down

0 comments on commit cf40c3c

Please sign in to comment.