@@ -412,6 +412,8 @@ def _query_on_allowed_values(
412412
413413 return retval
414414
415+ @deprecated_renamed_argument (('open_form' , 'cache' ), (None , None ),
416+ since = ['0.4.11' , '0.4.11' ])
415417 def query_surveys (
416418 self ,
417419 surveys : Union [List [str ], str ] = None , * ,
@@ -420,9 +422,14 @@ def query_surveys(
420422 top : int = None ,
421423 count_only : bool = False ,
422424 query_str_only : bool = False ,
423- print_help : bool = False ,
425+ help : bool = False ,
424426 authenticated : bool = False ,
427+ column_filters : Optional [dict ] = None ,
428+ open_form : bool = False , cache : bool = False ,
425429 ** 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 }
426433 return self ._query_on_allowed_values (table_name = EsoNames .phase3_table ,
427434 column_name = EsoNames .phase3_surveys_column ,
428435 allowed_values = surveys ,
@@ -431,10 +438,12 @@ def query_surveys(
431438 top = top ,
432439 count_only = count_only ,
433440 query_str_only = query_str_only ,
434- print_help = print_help ,
441+ print_help = help ,
435442 authenticated = authenticated ,
436443 ** kwargs )
437444
445+ @deprecated_renamed_argument (('open_form' , 'cache' ), (None , None ),
446+ since = ['0.4.11' , '0.4.11' ])
438447 def query_main (
439448 self ,
440449 instruments : Union [List [str ], str ] = None , * ,
@@ -443,9 +452,14 @@ def query_main(
443452 top : int = None ,
444453 count_only : bool = False ,
445454 query_str_only : bool = False ,
446- print_help : bool = False ,
455+ help : bool = False ,
447456 authenticated : bool = False ,
457+ column_filters : Optional [dict ] = None ,
458+ open_form : bool = False , cache : bool = False ,
448459 ** 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 }
449463 return self ._query_on_allowed_values (table_name = EsoNames .raw_table ,
450464 column_name = EsoNames .raw_instruments_column ,
451465 allowed_values = instruments ,
@@ -454,11 +468,12 @@ def query_main(
454468 top = top ,
455469 count_only = count_only ,
456470 query_str_only = query_str_only ,
457- print_help = print_help ,
471+ print_help = help ,
458472 authenticated = authenticated ,
459473 ** kwargs )
460474
461- # ex query_instrument
475+ @deprecated_renamed_argument (('open_form' , 'cache' ), (None , None ),
476+ since = ['0.4.11' , '0.4.11' ])
462477 def query_instrument (
463478 self ,
464479 instrument : str , * ,
@@ -467,9 +482,14 @@ def query_instrument(
467482 top : int = None ,
468483 count_only : bool = False ,
469484 query_str_only : bool = False ,
470- print_help : bool = False ,
485+ help : bool = False ,
471486 authenticated : bool = False ,
487+ column_filters : Optional [dict ] = None ,
488+ open_form : bool = False , cache : bool = False ,
472489 ** 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 }
473493 return self ._query_on_allowed_values (table_name = EsoNames .ist_table (instrument ),
474494 column_name = None ,
475495 allowed_values = None ,
@@ -478,7 +498,7 @@ def query_instrument(
478498 top = top ,
479499 count_only = count_only ,
480500 query_str_only = query_str_only ,
481- print_help = print_help ,
501+ print_help = help ,
482502 authenticated = authenticated ,
483503 ** kwargs )
484504
@@ -786,10 +806,12 @@ def retrieve_data(self, datasets, *, continuation=False, destination=None,
786806 log .info ("Done!" )
787807 return files [0 ] if files and len (files ) == 1 and return_string else files
788808
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 ):
793815 """
794816 APEX data are distributed with quicklook products identified with a
795817 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,
801823 >>> files = ...
802824 """
803825 # 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
805828 raise NotImplementedError
806829
807830
0 commit comments