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