@@ -126,20 +126,22 @@ def query_crossid_async(self, coordinates, *, radius=5. * u.arcsec, timeout=TIME
126
126
cache : bool, optional
127
127
If ``True`` use the request caching mechanism.
128
128
129
- Raises
130
- ------
131
- TypeError
132
- If the `radius` keyword could not be parsed as an angle.
133
- ValueError
134
- If the `radius` exceeds 3 arcmin, or if the sizes of
135
- `coordinates` and `obj_names` do not match.
136
-
137
129
Returns
138
130
-------
139
131
result : `~astropy.table.Table`
140
132
The result of the query as a `~astropy.table.Table` object.
141
133
142
134
"""
135
+ # Move Raises section here, since async_to_sync does not appear to like it.
136
+ #
137
+ # Raises
138
+ # ------
139
+ # TypeError
140
+ # If the `radius` keyword could not be parsed as an angle.
141
+ # ValueError
142
+ # If the `radius` exceeds 3 arcmin, or if the sizes of
143
+ # `coordinates` and `obj_names` do not match.
144
+
143
145
144
146
if isinstance (radius , Angle ):
145
147
radius = radius .to_value (u .arcmin )
@@ -286,15 +288,6 @@ def query_region_async(self, coordinates, *, radius=None,
286
288
cache : bool, optional
287
289
If ``True`` use the request caching mechanism.
288
290
289
- Raises
290
- ------
291
- TypeError
292
- If the `radius`, `width` or `height` keywords could not be parsed as an angle.
293
- ValueError
294
- If both `radius` and `width are set (or neither),
295
- or if the `radius` exceeds 3 arcmin,
296
- or if the sizes of `coordinates` and `obj_names` do not match.
297
-
298
291
Examples
299
292
--------
300
293
>>> from astroquery.sdss import SDSS
@@ -316,6 +309,17 @@ def query_region_async(self, coordinates, *, radius=None,
316
309
The result of the query as a `~astropy.table.Table` object.
317
310
318
311
"""
312
+ # Move Raises section here, since async_to_sync does not appear to like it.
313
+ #
314
+ # Raises
315
+ # ------
316
+ # TypeError
317
+ # If the `radius`, `width` or `height` keywords could not be parsed as an angle.
318
+ # ValueError
319
+ # If both `radius` and `width are set (or neither),
320
+ # or if the `radius` exceeds 3 arcmin,
321
+ # or if the sizes of `coordinates` and `obj_names` do not match.
322
+
319
323
# Allow field_help requests to pass without requiring a radius or width.
320
324
if field_help and radius is None and width is None :
321
325
radius = 2.0 * u .arcsec
0 commit comments