Skip to content

Commit 2634ac6

Browse files
nkphysicsbsipocz
authored andcommitted
Refactor: Made jplsec kwargs keyword only
1 parent 0207f46 commit 2634ac6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

astroquery/jplspec/core.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class JPLSpecClass(BaseQuery):
2727
URL = conf.server
2828
TIMEOUT = conf.timeout
2929

30-
def query_lines_async(self, min_frequency, max_frequency,
30+
def query_lines_async(self, min_frequency, max_frequency, *,
3131
min_strength=-500,
3232
max_lines=2000, molecule='All', flags=0,
3333
parse_name_locally=False,
@@ -126,7 +126,7 @@ def query_lines_async(self, min_frequency, max_frequency,
126126

127127
return response
128128

129-
def _parse_result(self, response, verbose=False):
129+
def _parse_result(self, response, *, verbose=False):
130130
"""
131131
Parse a response into an `~astropy.table.Table`
132132
@@ -181,7 +181,7 @@ def _parse_result(self, response, verbose=False):
181181

182182
return result
183183

184-
def get_species_table(self, catfile='catdir.cat'):
184+
def get_species_table(self, *, catfile='catdir.cat'):
185185
"""
186186
A directory of the catalog is found in a file called 'catdir.cat.'
187187
Each element of this directory is an 80-character record with the

0 commit comments

Comments
 (0)