@@ -162,7 +162,7 @@ def logout(self, verbose=False):
162
162
except HTTPError as err :
163
163
log .error ("Error logging out data server" )
164
164
165
- def load_data (self , ids , data_release = None , data_structure = 'INDIVIDUAL' , retrieval_type = "ALL" , valid_data = True ,
165
+ def load_data (self , ids , data_release = None , data_structure = 'INDIVIDUAL' , retrieval_type = "ALL" , valid_data = False ,
166
166
band = None , avoid_datatype_check = False , format = "votable" , output_file = None ,
167
167
overwrite_output_file = False , verbose = False ):
168
168
"""Loads the specified table
@@ -189,12 +189,10 @@ def load_data(self, ids, data_release=None, data_structure='INDIVIDUAL', retriev
189
189
retrieval type identifier. For GAIA DR2 possible values are ['EPOCH_PHOTOMETRY']
190
190
For future GAIA DR3 (Once published), possible values will be ['EPOC_PHOTOMETRY', 'RVS', 'XP_CONTINUOUS',
191
191
'XP_SAMPLED', 'MCMC_GSPPHOT' or 'MCMC_MSC']
192
- valid_data : bool, optional, default True
193
- By default, the epoch photometry service returns only valid data,
194
- that is, all data rows where flux is not null and
195
- rejected_by_photometry flag is not true. In order to retrieve
196
- all data associated to a given source without this filter,
197
- this request parameter should be included (valid_data=False)
192
+ valid_data : bool, optional, default False
193
+ By default, the epoch photometry service returns all data associated to a given source.
194
+ In order to retrieve only valid data, that is, all data rows where flux is not null and
195
+ rejected_by_photometry flag is not true, this parameter should be included (valid_data=True)
198
196
band : str, optional, default None, valid values: G, BP, RP
199
197
By default, the epoch photometry service returns all the
200
198
available photometry bands for the requested source.
@@ -250,9 +248,9 @@ def load_data(self, ids, data_release=None, data_structure='INDIVIDUAL', retriev
250
248
params_dict = {}
251
249
252
250
if not valid_data or str (retrieval_type ) == 'ALL' :
253
- params_dict ['VALID_DATA' ] = "false"
254
- elif valid_data :
255
251
params_dict ['VALID_DATA' ] = "true"
252
+ elif valid_data :
253
+ params_dict ['VALID_DATA' ] = "false"
256
254
257
255
if band is not None :
258
256
if band != 'G' and band != 'BP' and band != 'RP' :
0 commit comments