Skip to content

Commit f3d2293

Browse files
committed
Deprecate finding chart related value-added functions from alma.utils
1 parent d901a3c commit f3d2293

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

CHANGES.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ alma
1515

1616
- Added ``verify_only`` option to check if data downloaded with correct file size [#2263]
1717

18+
- Deprecate functionalities from ``alma.utils``. [#2332]
19+
1820
esa.hubble
1921
^^^^^^^^^^
2022

astroquery/alma/utils.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,15 @@
1010
from astroquery import log
1111
from astropy import units as u
1212
from astropy.io import fits
13+
from astropy.utils import deprecated
14+
1315
from astroquery.utils.commons import ASTROPY_LT_4_1
1416

1517
from astroquery.skyview import SkyView
1618
from astroquery.alma import Alma
1719

1820

21+
@deprecated('0.4.6', 'this function has been deprecated and will be removed in the next release.')
1922
def pyregion_subset(region, data, mywcs):
2023
"""
2124
Return a subset of an image (``data``) given a region.
@@ -153,6 +156,7 @@ def footprint_to_reg(footprint):
153156
return reglist
154157

155158

159+
@deprecated('0.4.6', 'this function has been deprecated and will be removed in the next release.')
156160
def add_meta_to_reg(reg, meta):
157161
reg.meta = meta
158162
return reg
@@ -181,6 +185,7 @@ def approximate_primary_beam_sizes(frequency_support_str,
181185
return u.Quantity(beam_sizes)
182186

183187

188+
@deprecated('0.4.6', 'this function has been deprecated and will be removed in the next release.')
184189
def make_finder_chart(target, radius, save_prefix, service=SkyView.get_images,
185190
service_kwargs={'survey': ['2MASS-K'], 'pixels': 500},
186191
alma_kwargs={'public': False, 'science': False},
@@ -229,6 +234,7 @@ def make_finder_chart(target, radius, save_prefix, service=SkyView.get_images,
229234
**kwargs)
230235

231236

237+
@deprecated('0.4.6', 'this function has been deprecated and will be removed in the next release.')
232238
def make_finder_chart_from_image(image, target, radius, save_prefix,
233239
alma_kwargs={'public': False,
234240
'science': False,
@@ -273,6 +279,7 @@ def make_finder_chart_from_image(image, target, radius, save_prefix,
273279
**kwargs)
274280

275281

282+
@deprecated('0.4.6', 'this function has been deprecated and will be removed in the next release.')
276283
def make_finder_chart_from_image_and_catalog(image, catalog, save_prefix,
277284
alma_kwargs={'public': False,
278285
'science': False},

0 commit comments

Comments
 (0)