@@ -412,6 +412,8 @@ def _query_on_allowed_values(
412
412
413
413
return retval
414
414
415
+ @deprecated_renamed_argument (('open_form' , 'cache' ), (None , None ),
416
+ since = ['0.4.11' , '0.4.11' ])
415
417
def query_surveys (
416
418
self ,
417
419
surveys : Union [List [str ], str ] = None , * ,
@@ -420,9 +422,14 @@ def query_surveys(
420
422
top : int = None ,
421
423
count_only : bool = False ,
422
424
query_str_only : bool = False ,
423
- print_help : bool = False ,
425
+ help : bool = False ,
424
426
authenticated : bool = False ,
427
+ column_filters : Optional [dict ] = None ,
428
+ open_form : bool = False , cache : bool = False ,
425
429
** kwargs ) -> Union [astropy .table .Table , int , str ]:
430
+ _ = open_form , cache # make explicit that we are aware these arguments are unused
431
+ c = column_filters if column_filters else {}
432
+ kwargs = {** kwargs , ** c }
426
433
return self ._query_on_allowed_values (table_name = EsoNames .phase3_table ,
427
434
column_name = EsoNames .phase3_surveys_column ,
428
435
allowed_values = surveys ,
@@ -431,10 +438,12 @@ def query_surveys(
431
438
top = top ,
432
439
count_only = count_only ,
433
440
query_str_only = query_str_only ,
434
- print_help = print_help ,
441
+ print_help = help ,
435
442
authenticated = authenticated ,
436
443
** kwargs )
437
444
445
+ @deprecated_renamed_argument (('open_form' , 'cache' ), (None , None ),
446
+ since = ['0.4.11' , '0.4.11' ])
438
447
def query_main (
439
448
self ,
440
449
instruments : Union [List [str ], str ] = None , * ,
@@ -443,9 +452,14 @@ def query_main(
443
452
top : int = None ,
444
453
count_only : bool = False ,
445
454
query_str_only : bool = False ,
446
- print_help : bool = False ,
455
+ help : bool = False ,
447
456
authenticated : bool = False ,
457
+ column_filters : Optional [dict ] = None ,
458
+ open_form : bool = False , cache : bool = False ,
448
459
** kwargs ) -> Union [astropy .table .Table , int , str ]:
460
+ _ = open_form , cache # make explicit that we are aware these arguments are unused
461
+ c = column_filters if column_filters else {}
462
+ kwargs = {** kwargs , ** c }
449
463
return self ._query_on_allowed_values (table_name = EsoNames .raw_table ,
450
464
column_name = EsoNames .raw_instruments_column ,
451
465
allowed_values = instruments ,
@@ -454,11 +468,12 @@ def query_main(
454
468
top = top ,
455
469
count_only = count_only ,
456
470
query_str_only = query_str_only ,
457
- print_help = print_help ,
471
+ print_help = help ,
458
472
authenticated = authenticated ,
459
473
** kwargs )
460
474
461
- # ex query_instrument
475
+ @deprecated_renamed_argument (('open_form' , 'cache' ), (None , None ),
476
+ since = ['0.4.11' , '0.4.11' ])
462
477
def query_instrument (
463
478
self ,
464
479
instrument : str , * ,
@@ -467,9 +482,14 @@ def query_instrument(
467
482
top : int = None ,
468
483
count_only : bool = False ,
469
484
query_str_only : bool = False ,
470
- print_help : bool = False ,
485
+ help : bool = False ,
471
486
authenticated : bool = False ,
487
+ column_filters : Optional [dict ] = None ,
488
+ open_form : bool = False , cache : bool = False ,
472
489
** kwargs ) -> Union [astropy .table .Table , int , str ]:
490
+ _ = open_form , cache # make explicit that we are aware these arguments are unused
491
+ c = column_filters if column_filters else {}
492
+ kwargs = {** kwargs , ** c }
473
493
return self ._query_on_allowed_values (table_name = EsoNames .ist_table (instrument ),
474
494
column_name = None ,
475
495
allowed_values = None ,
@@ -478,7 +498,7 @@ def query_instrument(
478
498
top = top ,
479
499
count_only = count_only ,
480
500
query_str_only = query_str_only ,
481
- print_help = print_help ,
501
+ print_help = help ,
482
502
authenticated = authenticated ,
483
503
** kwargs )
484
504
@@ -786,10 +806,12 @@ def retrieve_data(self, datasets, *, continuation=False, destination=None,
786
806
log .info ("Done!" )
787
807
return files [0 ] if files and len (files ) == 1 and return_string else files
788
808
789
- @deprecated_renamed_argument (('open_form' , 'help' ), (None , 'print_help' ),
790
- since = ['0.4.8' , '0.4.8' ])
791
- def query_apex_quicklooks (self , * , project_id = None , print_help = False ,
792
- open_form = False , ** kwargs ):
809
+ @deprecated_renamed_argument (('open_form' , 'cache' ), (None , None ),
810
+ since = ['0.4.11' , '0.4.11' ])
811
+ def query_apex_quicklooks (self , * , project_id = None , help : bool = False ,
812
+ column_filters : Optional [dict ] = None ,
813
+ open_form : bool = False , cache : bool = False ,
814
+ ** kwargs ):
793
815
"""
794
816
APEX data are distributed with quicklook products identified with a
795
817
different name than other ESO products. This query tool searches by
@@ -801,7 +823,8 @@ def query_apex_quicklooks(self, *, project_id=None, print_help=False,
801
823
>>> files = ...
802
824
"""
803
825
# TODO All this function
804
- _ = project_id , print_help , open_form , kwargs
826
+ # make explicit that we are aware these arguments are unused
827
+ _ = project_id , help , column_filters , open_form , cache , kwargs
805
828
raise NotImplementedError
806
829
807
830
0 commit comments