Skip to content

Commit bc0bc0a

Browse files
committed
Fix a bug in SimbadClass.query_region_async()
It is now possible to specify multiple coordinates together with a single radius as a `str`.
1 parent c3632e3 commit bc0bc0a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

astroquery/simbad/core.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,8 @@ def query_region_async(self, coordinates, radius=2*u.arcmin,
672672
else:
673673
frame = frame[0]
674674

675-
if isiterable(radius):
675+
# `radius` as `str` is iterable, but contains only one value.
676+
if isiterable(radius) and not isinstance(radius, str):
676677
if len(radius) != len(ra):
677678
raise ValueError("Mismatch between radii and coordinates")
678679
else:

0 commit comments

Comments
 (0)