|
8 | 8 | import astropy.units as u |
9 | 9 | import numpy as np |
10 | 10 | from astropy.utils import lazyproperty |
11 | | -from astropy.utils.decorators import deprecated_renamed_argument |
12 | 11 |
|
13 | 12 | from photutils.detection.core import (_DEPR_DEFAULT, StarFinderBase, |
14 | 13 | StarFinderCatalogBase, |
15 | 14 | _handle_deprecated_range, |
16 | 15 | _StarFinderKernel, _validate_n_brightest) |
17 | 16 | from photutils.utils._convolution import _filter_data |
18 | | -from photutils.utils._deprecation import deprecated_positional_kwargs |
| 17 | +from photutils.utils._deprecation import (deprecated_positional_kwargs, |
| 18 | + deprecated_renamed_argument) |
19 | 19 | from photutils.utils._quantity_helpers import isscalar, process_quantities |
20 | 20 | from photutils.utils._repr import make_repr |
21 | 21 | from photutils.utils.exceptions import NoDetectionsWarning |
@@ -204,8 +204,9 @@ class DAOStarFinder(StarFinderBase): |
204 | 204 | """ |
205 | 205 |
|
206 | 206 | @deprecated_positional_kwargs(since='3.0', until='4.0') |
207 | | - @deprecated_renamed_argument('brightest', 'n_brightest', '3.0') |
208 | | - @deprecated_renamed_argument('peakmax', 'peak_max', '3.0') |
| 207 | + @deprecated_renamed_argument('brightest', 'n_brightest', '3.0', |
| 208 | + until='4.0') |
| 209 | + @deprecated_renamed_argument('peakmax', 'peak_max', '3.0', until='4.0') |
209 | 210 | def __init__(self, threshold, fwhm, ratio=1.0, theta=0.0, |
210 | 211 | sigma_radius=1.5, sharplo=_DEPR_DEFAULT, |
211 | 212 | sharphi=_DEPR_DEFAULT, roundlo=_DEPR_DEFAULT, |
|
0 commit comments