Skip to content

Commit f8f36eb

Browse files
committed
DOC: address review comments
1 parent 8f5b273 commit f8f36eb

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

astroquery/ipac/irsa/core.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@
1515
from pyvo.dal import TAPService
1616

1717
try:
18-
from pyvo.dal.sia2 import SIA2Service
18+
from pyvo.dal.sia2 import SIA2Service, SIA2_PARAMETERS_DESC
1919
except ImportError:
2020
# Can be removed once min version of pyvo is 1.5
21+
from pyvo.dal.sia2 import SIA_PARAMETERS_DESC as SIA2_PARAMETERS_DESC
2122
from pyvo.dal.sia2 import SIAService as SIA2Service
2223

2324
from astroquery import log
@@ -118,6 +119,13 @@ def query_sia(self, *, pos=None, band=None, time=None, pol=None,
118119
maxrec=maxrec,
119120
**kwargs)
120121

122+
# SIA2_PARAMETERS_DESC contains links that Sphinx can't resolve.
123+
# SIA2_PARAMETERS_DESC contains links that Sphinx can't resolve.
124+
for var in ('POLARIZATION_STATES', 'CALIBRATION_LEVELS'):
125+
SIA2_PARAMETERS_DESC = SIA2_PARAMETERS_DESC.replace(f'`pyvo.dam.obscore.{var}`',
126+
f'pyvo.dam.obscore.{var}')
127+
query_sia.__doc__ = query_sia.__doc__.replace('_SIA2_PARAMETERS', SIA2_PARAMETERS_DESC)
128+
121129
@deprecated_renamed_argument(("selcols", "cache", "verbose"), ("columns", None, None), since="0.4.7")
122130
def query_region(self, coordinates=None, *, catalog=None, spatial='Cone',
123131
radius=10 * u.arcsec, width=None, polygon=None,

docs/ipac/irsa/irsa.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,8 @@ Enhanced Imaging products in the centre of the COSMOS field as an `~astropy.tabl
238238

239239
Now open a cutout image for one of the science images. You could either use
240240
the the IRSA on-premise data or the cloud version of it using the
241-
``access_url`` or ``cloud_access`` columns:
241+
``access_url`` or ``cloud_access`` columns. For more info about fits
242+
cutouts, please visit :ref:`astropy:fits_io_cloud`.
242243

243244
.. doctest-remote-data::
244245

0 commit comments

Comments
 (0)