@@ -81,7 +81,7 @@ def query_crossid_async(self, coordinates, obj_names=None,
81
81
radius : str or `~astropy.units.Quantity` object, optional The
82
82
string must be parsable by `~astropy.coordinates.Angle`. The
83
83
appropriate `~astropy.units.Quantity` object from
84
- `astropy.units` may also be used. Defaults to 2 arcsec.
84
+ `astropy.units` may also be used. Defaults to 5 arcsec.
85
85
timeout : float, optional
86
86
Time limit (in seconds) for establishing successful connection with
87
87
remote server. Defaults to `SDSSClass.TIMEOUT`.
@@ -144,7 +144,10 @@ def query_crossid_async(self, coordinates, obj_names=None,
144
144
145
145
sql_query += ',dbo.fPhotoTypeN(p.type) as type \
146
146
FROM #upload u JOIN #x x ON x.up_id = u.up_id \
147
- JOIN PhotoObjAll p ON p.objID = x.objID ORDER BY x.up_id'
147
+ JOIN PhotoObjAll p ON p.objID = x.objID '
148
+ if specobj_fields :
149
+ sql_query += 'JOIN SpecObjAll s ON p.objID = s.bestObjID '
150
+ sql_query += 'ORDER BY x.up_id'
148
151
149
152
data = "obj_id ra dec \n "
150
153
data += " \n " .join (['{0} {1} {2}' .format (obj_names [i ],
@@ -165,7 +168,7 @@ def query_crossid_async(self, coordinates, obj_names=None,
165
168
if get_query_payload :
166
169
return request_payload
167
170
url = self ._get_crossid_url (data_release )
168
- response = self ._request ("POST" , url , params = request_payload ,
171
+ response = self ._request ("POST" , url , data = request_payload ,
169
172
timeout = timeout , cache = cache )
170
173
return response
171
174
0 commit comments