From 44b034a1a8c6a1a36d81fd82cda167d51b7ff6a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Brigitta=20Sip=C5=91cz?= Date: Mon, 17 Mar 2025 13:37:45 -0700 Subject: [PATCH] ENH: we get warnings for s_region when using QTable, so doing Table for now --- CHANGES.rst | 2 +- astroquery/ipac/irsa/core.py | 8 ++++---- docs/ipac/irsa/irsa.rst | 12 ++++++------ 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index 4bf0b220f3..89f450fe21 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -18,7 +18,7 @@ esa.euclid ipac.irsa ^^^^^^^^^ -- ``query_sia`` now returns the results as an astropy QTable. [#3252] +- ``query_sia`` now returns the results as an astropy Table. [#3252, #3263] mast ^^^^ diff --git a/astroquery/ipac/irsa/core.py b/astroquery/ipac/irsa/core.py index e619f32876..f84488cfde 100644 --- a/astroquery/ipac/irsa/core.py +++ b/astroquery/ipac/irsa/core.py @@ -102,7 +102,7 @@ def query_sia(self, *, pos=None, band=None, time=None, pol=None, Returns ------- - Results in `~astropy.table.QTable` format. + Results in `~astropy.table.Table` format. """ results = self.sia.search( @@ -126,7 +126,7 @@ def query_sia(self, *, pos=None, band=None, time=None, pol=None, maxrec=maxrec, **kwargs) - return results.to_qtable() + return results.to_table() query_sia.__doc__ = query_sia.__doc__.replace('_SIA2_PARAMETERS', SIA2_PARAMETERS_DESC) @@ -153,7 +153,7 @@ def query_ssa(self, *, pos=None, radius=None, band=None, time=None, collection=N Returns ------- - Results in `~astropy.table.QTable` format. + Results in `~astropy.table.Table` format. """ if radius is None: @@ -163,7 +163,7 @@ def query_ssa(self, *, pos=None, radius=None, band=None, time=None, collection=N results = self.ssa.search(pos=pos, diameter=diameter, band=band, time=time, format='all', collection=collection) - return results.to_qtable() + return results.to_table() def list_collections(self, servicetype=None): """ diff --git a/docs/ipac/irsa/irsa.rst b/docs/ipac/irsa/irsa.rst index 403f0c16af..b62d17d4c8 100644 --- a/docs/ipac/irsa/irsa.rst +++ b/docs/ipac/irsa/irsa.rst @@ -121,8 +121,8 @@ and width parameter of the box search must also be specified. >>> table = Irsa.query_region(coordinates=coord, spatial='Box', ... catalog='fp_psc', width=2 * u.arcmin) >>> print(table) - ra dec err_maj err_min err_ang designation ... ext_key scan_key coadd_key coadd htm20 - deg deg arcsec arcsec deg ... + ra dec err_maj err_min err_ang designation ... ext_key scan_key coadd_key coadd htm20 + deg deg arcsec arcsec deg ... --------- --------- ------- ------- ------- ---------------- ... ------- -------- --------- ----- ------------------- 10.692216 41.260162 0.10 0.09 87 00424613+4115365 ... -- 69157 1590591 33 4805203678124326400 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. >>> from astroquery.ipac.irsa import Irsa >>> table = Irsa.query_region("HIP 12", catalog="allwise_p3as_psd", spatial="Cone", async_job=True) >>> print(table) - designation ra dec sigra ... y z spt_ind htm20 - deg deg arcsec ... + designation ra dec sigra ... y z spt_ind htm20 + deg deg arcsec ... ------------------- --------- ----------- ------ ... ------------------ ------------------- --------- ------------- J000009.78-355736.9 0.0407905 -35.9602605 0.0454 ... 0.0005762523295116 -0.5872239888098030 100102010 8873706189183 @@ -271,7 +271,7 @@ Simple image access queries `~astroquery.ipac.irsa.IrsaClass.query_sia` provides a way to access IRSA's Simple Image Access VO service. In the following example we are looking for Spitzer -Enhanced Imaging products in the centre of the COSMOS field as a `~astropy.table.QTable`. +Enhanced Imaging products in the centre of the COSMOS field as a `~astropy.table.Table`. .. doctest-remote-data:: @@ -356,7 +356,7 @@ Simple spectral access queries `~astroquery.ipac.irsa.IrsaClass.query_ssa` provides a way to access IRSA's Simple Spectral Access VO service. In the following example we are looking for Spitzer -Enhanced Imaging products in the centre of the COSMOS field as a `~astropy.table.QTable`. +Enhanced Imaging products in the centre of the COSMOS field as a `~astropy.table.Table`. .. doctest-remote-data::