@@ -102,10 +102,10 @@ def query_sia(self, *, pos=None, band=None, time=None, pol=None,
102
102
103
103
Returns
104
104
-------
105
- Results in `pyvo.dal.SIAResults ` format.
106
- result.to_table() in Astropy table format
105
+ Results in `~astropy.table.QTable ` format.
106
+
107
107
"""
108
- return self .sia .search (
108
+ results = self .sia .search (
109
109
pos = pos ,
110
110
band = band ,
111
111
time = time ,
@@ -126,6 +126,8 @@ def query_sia(self, *, pos=None, band=None, time=None, pol=None,
126
126
maxrec = maxrec ,
127
127
** kwargs )
128
128
129
+ return results .to_qtable ()
130
+
129
131
query_sia .__doc__ = query_sia .__doc__ .replace ('_SIA2_PARAMETERS' , SIA2_PARAMETERS_DESC )
130
132
131
133
def query_ssa (self , * , pos = None , radius = None , band = None , time = None , collection = None ):
@@ -151,17 +153,17 @@ def query_ssa(self, *, pos=None, radius=None, band=None, time=None, collection=N
151
153
152
154
Returns
153
155
-------
154
- Results in `pyvo.dal.SSAResults` format.
155
- result.to_table() in Astropy table format
156
+ Results in `~astropy.table.QTable` format.
156
157
"""
157
158
158
159
if radius is None :
159
160
diameter = None
160
161
else :
161
162
diameter = 2 * radius
162
163
163
- return self .ssa .search (pos = pos , diameter = diameter , band = band , time = time ,
164
- format = 'all' , collection = collection )
164
+ results = self .ssa .search (pos = pos , diameter = diameter , band = band , time = time ,
165
+ format = 'all' , collection = collection )
166
+ return results .to_qtable ()
165
167
166
168
def list_collections (self , servicetype = None ):
167
169
"""
0 commit comments