Skip to content

Commit ae3e06f

Browse files
authored
Merge pull request #2596 from AlinderS/update-gaia-defaults
GAIA: Update default Gaia data release to DR3
2 parents 7de626b + 9a8a8c4 commit ae3e06f

File tree

6 files changed

+115
-122
lines changed

6 files changed

+115
-122
lines changed

CHANGES.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,8 @@ gaia
174174
With this change the epoch photometry service returns all data associated
175175
to a given source. [#2376]
176176

177+
- Default Gaia catalog updated to DR3. [#2596]
178+
177179
sdss
178180
^^^^
179181

astroquery/gaia/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class Conf(_config.ConfigNamespace):
2222
Configuration parameters for `astroquery.gaia`.
2323
"""
2424

25-
MAIN_GAIA_TABLE = _config.ConfigItem("gaiadr2.gaia_source",
25+
MAIN_GAIA_TABLE = _config.ConfigItem("gaiadr3.gaia_source",
2626
"GAIA source data table")
2727
MAIN_GAIA_TABLE_RA = _config.ConfigItem("ra",
2828
"Name of RA parameter in table")

astroquery/gaia/core.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def load_data(self, ids, data_release=None, data_structure='INDIVIDUAL', retriev
173173
ids : str list, mandatory
174174
list of identifiers
175175
data_release: str, optional, default None
176-
data release from which data should be taken. E.g. 'Gaia DR2'
176+
data release from which data should be taken. E.g. 'Gaia DR3'
177177
By default, it takes the current default one.
178178
data_structure: str, optional, default 'INDIVIDUAL'
179179
it can be 'INDIVIDUAL', 'COMBINED', 'RAW':
@@ -187,8 +187,8 @@ def load_data(self, ids, data_release=None, data_structure='INDIVIDUAL', retriev
187187
row per sourceId
188188
retrieval_type : str, optional, default 'ALL' to retrieve all data from the list of sources
189189
retrieval type identifier. For GAIA DR2 possible values are ['EPOCH_PHOTOMETRY']
190-
For future GAIA DR3 (Once published), possible values will be ['EPOC_PHOTOMETRY', 'RVS', 'XP_CONTINUOUS',
191-
'XP_SAMPLED', 'MCMC_GSPPHOT' or 'MCMC_MSC']
190+
For GAIA DR3, possible values are ['EPOC_PHOTOMETRY', 'RVS', 'XP_CONTINUOUS', 'XP_SAMPLED',
191+
'MCMC_GSPPHOT' or 'MCMC_MSC']
192192
valid_data : bool, optional, default False
193193
By default, the epoch photometry service returns all available data, including
194194
data rows where flux is null and/or the rejected_by_photometry flag is set to True.

astroquery/gaia/tests/test_gaia_remote.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def test_query_object_row_limit():
3232
Gaia.ROW_LIMIT = -1
3333
r = Gaia.query_object_async(coordinate=coord, width=width, height=height)
3434

35-
assert len(r) == 176
35+
assert len(r) == 184
3636

3737

3838
@pytest.mark.remote_data
@@ -55,4 +55,4 @@ def test_cone_search_row_limit():
5555
j = Gaia.cone_search_async(coord, radius)
5656
r = j.get_results()
5757

58-
assert len(r) == 1188
58+
assert len(r) == 1218

astroquery/gaia/tests/test_gaiatap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def test_cone_search_async(column_attrs, mock_querier_async):
178178
# Regression test for #2093 and #2099 - changing the MAIN_GAIA_TABLE
179179
# had no effect.
180180
# The preceding tests should have used the default value.
181-
assert 'gaiadr2.gaia_source' in job.parameters['query']
181+
assert 'gaiadr3.gaia_source' in job.parameters['query']
182182
with conf.set_temp("MAIN_GAIA_TABLE", "name_from_conf"):
183183
job = mock_querier_async.cone_search_async(skycoord, radius)
184184
assert "name_from_conf" in job.parameters["query"]

0 commit comments

Comments
 (0)