Skip to content

Commit fb76dd6

Browse files
authored
Merge pull request #3263 from bsipocz/ENH_use_Table_instead_QTable
ENH: use Table instead of QTable
2 parents 78aee6f + 44b034a commit fb76dd6

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

CHANGES.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ esa.euclid
1818
ipac.irsa
1919
^^^^^^^^^
2020

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

2323
mast
2424
^^^^

astroquery/ipac/irsa/core.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def query_sia(self, *, pos=None, band=None, time=None, pol=None,
102102
103103
Returns
104104
-------
105-
Results in `~astropy.table.QTable` format.
105+
Results in `~astropy.table.Table` format.
106106
107107
"""
108108
results = self.sia.search(
@@ -126,7 +126,7 @@ def query_sia(self, *, pos=None, band=None, time=None, pol=None,
126126
maxrec=maxrec,
127127
**kwargs)
128128

129-
return results.to_qtable()
129+
return results.to_table()
130130

131131
query_sia.__doc__ = query_sia.__doc__.replace('_SIA2_PARAMETERS', SIA2_PARAMETERS_DESC)
132132

@@ -153,7 +153,7 @@ def query_ssa(self, *, pos=None, radius=None, band=None, time=None, collection=N
153153
154154
Returns
155155
-------
156-
Results in `~astropy.table.QTable` format.
156+
Results in `~astropy.table.Table` format.
157157
"""
158158

159159
if radius is None:
@@ -163,7 +163,7 @@ def query_ssa(self, *, pos=None, radius=None, band=None, time=None, collection=N
163163

164164
results = self.ssa.search(pos=pos, diameter=diameter, band=band, time=time,
165165
format='all', collection=collection)
166-
return results.to_qtable()
166+
return results.to_table()
167167

168168
def list_collections(self, servicetype=None):
169169
"""

docs/ipac/irsa/irsa.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ and width parameter of the box search must also be specified.
121121
>>> table = Irsa.query_region(coordinates=coord, spatial='Box',
122122
... catalog='fp_psc', width=2 * u.arcmin)
123123
>>> print(table)
124-
ra dec err_maj err_min err_ang designation ... ext_key scan_key coadd_key coadd htm20
125-
deg deg arcsec arcsec deg ...
124+
ra dec err_maj err_min err_ang designation ... ext_key scan_key coadd_key coadd htm20
125+
deg deg arcsec arcsec deg ...
126126
--------- --------- ------- ------- ------- ---------------- ... ------- -------- --------- ----- -------------------
127127
10.692216 41.260162 0.10 0.09 87 00424613+4115365 ... -- 69157 1590591 33 4805203678124326400
128128
10.700059 41.263481 0.31 0.30 155 00424801+4115485 ... -- 69157 1590591 33 4805203678125364736
@@ -229,8 +229,8 @@ the query is send in asynchronous mode.
229229
>>> from astroquery.ipac.irsa import Irsa
230230
>>> table = Irsa.query_region("HIP 12", catalog="allwise_p3as_psd", spatial="Cone", async_job=True)
231231
>>> print(table)
232-
designation ra dec sigra ... y z spt_ind htm20
233-
deg deg arcsec ...
232+
designation ra dec sigra ... y z spt_ind htm20
233+
deg deg arcsec ...
234234
------------------- --------- ----------- ------ ... ------------------ ------------------- --------- -------------
235235
J000009.78-355736.9 0.0407905 -35.9602605 0.0454 ... 0.0005762523295116 -0.5872239888098030 100102010 8873706189183
236236

@@ -271,7 +271,7 @@ Simple image access queries
271271

272272
`~astroquery.ipac.irsa.IrsaClass.query_sia` provides a way to access IRSA's Simple
273273
Image Access VO service. In the following example we are looking for Spitzer
274-
Enhanced Imaging products in the centre of the COSMOS field as a `~astropy.table.QTable`.
274+
Enhanced Imaging products in the centre of the COSMOS field as a `~astropy.table.Table`.
275275

276276
.. doctest-remote-data::
277277

@@ -356,7 +356,7 @@ Simple spectral access queries
356356

357357
`~astroquery.ipac.irsa.IrsaClass.query_ssa` provides a way to access IRSA's Simple
358358
Spectral Access VO service. In the following example we are looking for Spitzer
359-
Enhanced Imaging products in the centre of the COSMOS field as a `~astropy.table.QTable`.
359+
Enhanced Imaging products in the centre of the COSMOS field as a `~astropy.table.Table`.
360360

361361
.. doctest-remote-data::
362362

0 commit comments

Comments
 (0)