@@ -272,7 +272,7 @@ def get_catalogs_async(self, catalog, verbose=False, return_type='votable',
272
272
273
273
return response
274
274
275
- def query_object_async (self , object_name , catalog = None , radius = None ,
275
+ def query_object_async (self , object_name , * , catalog = None , radius = None ,
276
276
coordinate_frame = None , get_query_payload = False ,
277
277
return_type = 'votable' , cache = True ):
278
278
"""
@@ -323,7 +323,7 @@ def query_object_async(self, object_name, catalog=None, radius=None,
323
323
data = data_payload , timeout = self .TIMEOUT , cache = cache )
324
324
return response
325
325
326
- def query_region_async (self , coordinates , radius = None , inner_radius = None ,
326
+ def query_region_async (self , coordinates , * , radius = None , inner_radius = None ,
327
327
width = None , height = None , catalog = None ,
328
328
get_query_payload = False , cache = True ,
329
329
return_type = 'votable' , column_filters = {},
@@ -332,6 +332,8 @@ def query_region_async(self, coordinates, radius=None, inner_radius=None,
332
332
Serves the same purpose as `query_region` but only
333
333
returns the HTTP response rather than the parsed result.
334
334
335
+ At least one of ``radius`` or ``width`` must be specified.
336
+
335
337
Parameters
336
338
----------
337
339
coordinates : str, `astropy.coordinates` object, or `~astropy.table.Table`
@@ -454,7 +456,7 @@ def query_region_async(self, coordinates, radius=None, inner_radius=None,
454
456
data = data_payload , timeout = self .TIMEOUT , cache = cache )
455
457
return response
456
458
457
- def query_constraints_async (self , catalog = None , return_type = 'votable' ,
459
+ def query_constraints_async (self , * , catalog = None , return_type = 'votable' ,
458
460
cache = True , get_query_payload = False ,
459
461
** kwargs ):
460
462
"""
@@ -641,7 +643,7 @@ def _args_to_payload(self, *args, **kwargs):
641
643
# merge result
642
644
return "\n " .join (script )
643
645
644
- def _parse_result (self , response , get_catalog_names = False , verbose = False ,
646
+ def _parse_result (self , response , * , get_catalog_names = False , verbose = False ,
645
647
invalid = 'warn' ):
646
648
"""
647
649
Parses the HTTP response to create a `~astropy.table.Table`.
@@ -708,7 +710,7 @@ def valid_keywords(self):
708
710
return self ._valid_keyword_dict
709
711
710
712
711
- def parse_vizier_tsvfile (data , verbose = False ):
713
+ def parse_vizier_tsvfile (data , * , verbose = False ):
712
714
"""
713
715
Parse a Vizier-generated list of tsv data tables into a list of astropy
714
716
Tables.
@@ -729,7 +731,7 @@ def parse_vizier_tsvfile(data, verbose=False):
729
731
return tables
730
732
731
733
732
- def parse_vizier_votable (data , verbose = False , invalid = 'warn' ,
734
+ def parse_vizier_votable (data , * , verbose = False , invalid = 'warn' ,
733
735
get_catalog_names = False ):
734
736
"""
735
737
Given a votable as string, parse it into dict or tables
0 commit comments