Skip to content

Commit da24a24

Browse files
nkphysicsbsipocz
authored andcommitted
Refactor: Made xmatch kwargs keyword only
1 parent c872375 commit da24a24

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

astroquery/xmatch/core.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class XMatchClass(BaseQuery):
2424
URL = conf.url
2525
TIMEOUT = conf.timeout
2626

27-
def query(self, cat1, cat2, max_distance,
27+
def query(self, cat1, cat2, max_distance, *,
2828
colRA1=None, colDec1=None, colRA2=None, colDec2=None,
2929
area='allsky', cache=True, get_query_payload=False, **kwargs):
3030
"""
@@ -70,8 +70,8 @@ def query(self, cat1, cat2, max_distance,
7070
table : `~astropy.table.Table`
7171
Query results table
7272
"""
73-
response = self.query_async(cat1, cat2, max_distance, colRA1, colDec1,
74-
colRA2, colDec2, area=area, cache=cache,
73+
response = self.query_async(cat1, cat2, max_distance, colRA1=colRA1, colDec1=colDec1,
74+
colRA2=colRA2, colDec2=colDec2, area=area, cache=cache,
7575
get_query_payload=get_query_payload,
7676
**kwargs)
7777
if get_query_payload:
@@ -81,7 +81,7 @@ def query(self, cat1, cat2, max_distance,
8181
return Table.read(content, format='votable', use_names_over_ids=True)
8282

8383
@prepend_docstr_nosections("\n" + query.__doc__)
84-
def query_async(self, cat1, cat2, max_distance, colRA1=None, colDec1=None,
84+
def query_async(self, cat1, cat2, max_distance, *, colRA1=None, colDec1=None,
8585
colRA2=None, colDec2=None, area='allsky', cache=True,
8686
get_query_payload=False, **kwargs):
8787
"""
@@ -173,7 +173,7 @@ def is_table_available(self, table_id):
173173

174174
return table_id in self.get_available_tables()
175175

176-
def get_available_tables(self, cache=True):
176+
def get_available_tables(self, *, cache=True):
177177
"""Get the list of the VizieR tables which are available in the
178178
xMatch service and return them as a list of strings.
179179

0 commit comments

Comments
 (0)