Skip to content

Commit 601280f

Browse files
committed
fix field_help requests
1 parent be6f9c5 commit 601280f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

astroquery/sdss/core.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,10 +314,14 @@ def query_region_async(self, coordinates, *, radius=None,
314314
2.02344596303 14.8398237521 1237652943176138868 1739 301 3 315
315315
2.02344772021 14.8398201105 1237653651835781243 1904 301 3 163
316316
"""
317+
# Allow field_help requests to pass without requiring a radius or width.
318+
if field_help and radius is None and width is None:
319+
radius = 2.0 * u.arcsec
320+
317321
if radius is None and width is None:
318-
raise ValueError("One or the other of radius or width must be selected!")
322+
raise ValueError("Either radius or width must be selected!")
319323
if radius is not None and width is not None:
320-
raise ValueError("One or the other of radius or width must be selected!")
324+
raise ValueError("Either radius or width must be selected!")
321325

322326
if radius is not None:
323327
request_payload, files = self.query_crossid_async(coordinates=coordinates,

0 commit comments

Comments
 (0)