Skip to content

Commit 5a5111d

Browse files
authored
MAST: Add Gaia DR3 and make it default
1 parent 5910511 commit 5a5111d

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

astroquery/mast/collections.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,10 +264,12 @@ def query_region_async(self, coordinates, *, radius=0.2*u.deg, catalog="Hsc",
264264
elif catalog.lower() == "gaia":
265265
if version == 1:
266266
service = "Mast.Catalogs.GaiaDR1.Cone"
267-
else:
268-
if version not in (None, 2):
269-
warnings.warn("Invalid Gaia version number, defaulting to DR2.", InputWarning)
267+
elif version == 2:
270268
service = "Mast.Catalogs.GaiaDR2.Cone"
269+
else:
270+
if version not in (None, 3):
271+
warnings.warn("Invalid Gaia version number, defaulting to DR3.", InputWarning)
272+
service = "Mast.Catalogs.GaiaDR3.Cone"
271273

272274
elif catalog.lower() == 'plato':
273275
if version in (None, 1):

0 commit comments

Comments
 (0)