Skip to content

Commit 1a666c1

Browse files
authored
Merge pull request #3266 from bsipocz/MAINT_irsa_cleanups
MAINT: deprecating legacy print_catalogs()
2 parents 55f6459 + 170295a commit 1a666c1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGES.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ ipac.irsa
2020

2121
- ``query_sia`` now returns the results as an astropy Table. [#3252, #3263]
2222

23+
- Deprecate ``print_catalogs`` in favour of ``list_catalogs``. [#3266]
24+
2325
mast
2426
^^^^
2527

astroquery/ipac/irsa/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import warnings
1111
from astropy.coordinates import SkyCoord, Angle
1212
from astropy import units as u
13-
from astropy.utils.decorators import deprecated_renamed_argument
13+
from astropy.utils.decorators import deprecated, deprecated_renamed_argument
1414

1515
from pyvo.dal import TAPService, SIA2Service, SSAService
1616
from pyvo.dal.sia2 import SIA2_PARAMETERS_DESC
@@ -328,7 +328,7 @@ def list_catalogs(self, *, full=False, filter=None, cache=False):
328328
else:
329329
return {tap_table['table_name']: tap_table['description'] for tap_table in tap_tables}
330330

331-
# TODO, deprecate this as legacy
331+
@deprecated(since="0.4.10", alternative="list_catalogs")
332332
def print_catalogs(self):
333333
catalogs = self.list_catalogs()
334334

0 commit comments

Comments
 (0)