@@ -38,7 +38,7 @@ class GaiaClass(TapPlus):
38
38
"""
39
39
Proxy class to default TapPlus object (pointing to Gaia Archive)
40
40
"""
41
- MAIN_GAIA_TABLE = conf . MAIN_GAIA_TABLE
41
+ MAIN_GAIA_TABLE = None
42
42
MAIN_GAIA_TABLE_RA = conf .MAIN_GAIA_TABLE_RA
43
43
MAIN_GAIA_TABLE_DEC = conf .MAIN_GAIA_TABLE_DEC
44
44
ROW_LIMIT = conf .ROW_LIMIT
@@ -426,7 +426,7 @@ def __query_object(self, coordinate, radius=None, width=None, height=None,
426
426
dist ASC
427
427
""" .format (** {'row_limit' : "TOP {0}" .format (self .ROW_LIMIT ) if self .ROW_LIMIT > 0 else "" ,
428
428
'ra_column' : self .MAIN_GAIA_TABLE_RA , 'dec_column' : self .MAIN_GAIA_TABLE_DEC ,
429
- 'columns' : columns , 'table_name' : self .MAIN_GAIA_TABLE , 'ra' : ra , 'dec' : dec ,
429
+ 'columns' : columns , 'table_name' : self .MAIN_GAIA_TABLE or conf . MAIN_GAIA_TABLE , 'ra' : ra , 'dec' : dec ,
430
430
'width' : widthDeg .value , 'height' : heightDeg .value })
431
431
if async_job :
432
432
job = self .launch_job_async (query , verbose = verbose )
@@ -486,7 +486,7 @@ def query_object_async(self, coordinate, radius=None, width=None,
486
486
"""
487
487
return self .__query_object (coordinate , radius , width , height , async_job = True , verbose = verbose , columns = columns )
488
488
489
- def __cone_search (self , coordinate , radius , table_name = MAIN_GAIA_TABLE ,
489
+ def __cone_search (self , coordinate , radius , table_name = None ,
490
490
ra_column_name = MAIN_GAIA_TABLE_RA ,
491
491
dec_column_name = MAIN_GAIA_TABLE_DEC ,
492
492
async_job = False ,
@@ -563,7 +563,7 @@ def __cone_search(self, coordinate, radius, table_name=MAIN_GAIA_TABLE,
563
563
""" .format (** {'ra_column' : ra_column_name ,
564
564
'row_limit' : "TOP {0}" .format (self .ROW_LIMIT ) if self .ROW_LIMIT > 0 else "" ,
565
565
'dec_column' : dec_column_name , 'columns' : columns , 'ra' : ra , 'dec' : dec ,
566
- 'radius' : radiusDeg , 'table_name' : table_name })
566
+ 'radius' : radiusDeg , 'table_name' : table_name or self . MAIN_GAIA_TABLE or conf . MAIN_GAIA_TABLE })
567
567
568
568
if async_job :
569
569
return self .launch_job_async (query = query ,
@@ -580,7 +580,7 @@ def __cone_search(self, coordinate, radius, table_name=MAIN_GAIA_TABLE,
580
580
dump_to_file = dump_to_file )
581
581
582
582
def cone_search (self , coordinate , radius = None ,
583
- table_name = MAIN_GAIA_TABLE ,
583
+ table_name = None ,
584
584
ra_column_name = MAIN_GAIA_TABLE_RA ,
585
585
dec_column_name = MAIN_GAIA_TABLE_DEC ,
586
586
output_file = None ,
@@ -631,7 +631,7 @@ def cone_search(self, coordinate, radius=None,
631
631
dump_to_file = dump_to_file , columns = columns )
632
632
633
633
def cone_search_async (self , coordinate , radius = None ,
634
- table_name = MAIN_GAIA_TABLE ,
634
+ table_name = None ,
635
635
ra_column_name = MAIN_GAIA_TABLE_RA ,
636
636
dec_column_name = MAIN_GAIA_TABLE_DEC ,
637
637
background = False ,
0 commit comments